diff --git a/PHPUnit/Util/Log/VCR.php b/PHPUnit/Util/Log/VCR.php index b5fe87e..72c075d 100644 --- a/PHPUnit/Util/Log/VCR.php +++ b/PHPUnit/Util/Log/VCR.php @@ -119,7 +119,8 @@ public function startTest(PHPUnit_Framework_Test $test) $doc_block = $reflection->getDocComment(); // Use regex to parse the doc_block for a specific annotation - $cassetteName = array_pop(self::parseDocBlock($doc_block, '@vcr')); + $parsed = $self::parseDocBlock($doc_block, '@vcr'); + $cassetteName = array_pop($parsed); // If the cassette name ends in .json, then use the JSON storage format if (substr($cassetteName, '-5') == '.json') { @@ -188,4 +189,4 @@ public function endTestSuite(PHPUnit_Framework_TestSuite $suite) { } -} \ No newline at end of file +}