Skip to content

Commit

Permalink
Merge pull request #3 from janhartigan/patch-1
Browse files Browse the repository at this point in the history
Fixing pass-by-reference exception
  • Loading branch information
adri committed Oct 27, 2014
2 parents eea9149 + b43cbee commit 4d90fd0
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 4d90fd0

Please sign in to comment.