diff --git a/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php b/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php index 9106d17bd..8c07e9b45 100644 --- a/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php +++ b/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php @@ -265,7 +265,7 @@ class CakeHtmlReporter extends CakeBaseReporter { echo "
" . $this->_htmlEntities($message->toString()); if ((is_string($actualMsg) && is_string($expectedMsg)) || (is_array($actualMsg) && is_array($expectedMsg))) { - + $diffs = ""; if (class_exists('PHPUnit_Util_Diff')) { $diffs = PHPUnit_Util_Diff::diff($expectedMsg, $actualMsg); @@ -273,7 +273,7 @@ class CakeHtmlReporter extends CakeBaseReporter { $differ = new SebastianBergmann\Diff\Differ(); $diffs = $differ->diff($expectedMsg, $actualMsg); } - + echo "
" . $this->_htmlEntities($diffs); }