Skip to content

Commit

Permalink
Fixed syntax to work with PHP5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
peloncano committed Aug 8, 2017
1 parent 9f175f2 commit 3307665
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php
Expand Up @@ -270,7 +270,8 @@ public function paintFail($message, $test) {
if (class_exists('PHPUnit_Util_Diff')) {
$diffs = PHPUnit_Util_Diff::diff($expectedMsg, $actualMsg);
} elseif (class_exists('SebastianBergmann\Diff\Differ')) {
$diffs = (new SebastianBergmann\Diff\Differ())->diff($expectedMsg, $actualMsg);
$differ = new SebastianBergmann\Diff\Differ();
$diffs = $differ->diff($expectedMsg, $actualMsg);
}

echo "<br />" . $this->_htmlEntities($diffs);
Expand Down

0 comments on commit 3307665

Please sign in to comment.