Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Cassette Name Check Condition #40

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
This repository is forked from https://github.com/php-vcr/phpunit-testlistener-vcr

Copyright (c) 2013-2016 Adrian Philipp, https://github.com/adri <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand All @@ -16,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "php-vcr/phpunit-testlistener-vcr",
"description": "Integrates PHPUnit with PHP-VCR.",
"name": "ivancli/phpunit-testlistener-vcr",
"description": "A forked version of php-vcr/phpunit-testlistener-vcr",
"license": "MIT",
"authors": [
{
"name": "Adrian Philipp",
"email": "mail@adrian-philipp.com"
"name": "Ivan Li",
"email": "ivan.li@hotmail.com"
}
],
"autoload": {
Expand All @@ -20,7 +20,7 @@
},
"require": {
"php-vcr/php-vcr": "^1.4",
"php": "^7.1"
"php": "^7.1|^8.1"
},
"require-dev": {
"phpunit/phpunit": "^7.0"
Expand Down
2 changes: 1 addition & 1 deletion src/VCRTestListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function startTest(Test $test): void
$parsed = self::parseDocBlock($docBlock, '@vcr');
$cassetteName = array_pop($parsed);

if (empty($cassetteName)) {
if ($cassetteName) {
return;
}

Expand Down