From b43cbee44769c3e5b5e7556fbfeb5ffa1c8e0414 Mon Sep 17 00:00:00 2001 From: Jan Hartigan Date: Mon, 27 Oct 2014 14:13:28 -0700 Subject: [PATCH] Fixing pass-by-reference exception --- PHPUnit/Util/Log/VCR.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 +}