mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed syntax to work with PHP5.3
This commit is contained in:
parent
9f175f22f4
commit
3307665cbb
1 changed files with 2 additions and 1 deletions
|
@ -270,7 +270,8 @@ class CakeHtmlReporter extends CakeBaseReporter {
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue