Skip to content

Commit 4d90fd0

Browse files
committed
Merge pull request #3 from janhartigan/patch-1
Fixing pass-by-reference exception
2 parents eea9149 + b43cbee commit 4d90fd0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PHPUnit/Util/Log/VCR.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ public function startTest(PHPUnit_Framework_Test $test)
119119
$doc_block = $reflection->getDocComment();
120120

121121
// Use regex to parse the doc_block for a specific annotation
122-
$cassetteName = array_pop(self::parseDocBlock($doc_block, '@vcr'));
122+
$parsed = $self::parseDocBlock($doc_block, '@vcr');
123+
$cassetteName = array_pop($parsed);
123124

124125
// If the cassette name ends in .json, then use the JSON storage format
125126
if (substr($cassetteName, '-5') == '.json') {
@@ -188,4 +189,4 @@ public function endTestSuite(PHPUnit_Framework_TestSuite $suite)
188189
{
189190

190191
}
191-
}
192+
}

0 commit comments

Comments
 (0)