We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
empty($cassetteName)
1 parent a6009d8 commit a56c7e2Copy full SHA for a56c7e2
src/VCRTestListener.php
@@ -45,15 +45,15 @@ public function startTest(Test $test): void
45
$parsed = self::parseDocBlock($docBlock, '@vcr');
46
$cassetteName = array_pop($parsed);
47
48
+ if (empty($cassetteName)) {
49
+ return;
50
+ }
51
+
52
// If the cassette name ends in .json, then use the JSON storage format
53
if (substr($cassetteName, -5) === '.json') {
54
VCR::configure()->setStorage('json');
55
}
56
- if (empty($cassetteName)) {
- return;
- }
-
57
VCR::turnOn();
58
VCR::insertCassette($cassetteName);
59
0 commit comments