Skip to content

Commit

Permalink
Fixing pass-by-reference exception
Browse files Browse the repository at this point in the history
  • Loading branch information
janhartigan committed Oct 27, 2014
1 parent eea9149 commit b43cbee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PHPUnit/Util/Log/VCR.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -188,4 +189,4 @@ public function endTestSuite(PHPUnit_Framework_TestSuite $suite)
{

}
}
}

0 comments on commit b43cbee

Please sign in to comment.