Merge pull request #3302 from dereuromark/2.5-webtestrunner

Fix CakeHtmlReporter output for HTML
This commit is contained in:
Mark Story 2014-04-12 08:07:09 -04:00
commit 4b1d2b06c9

View file

@ -264,7 +264,7 @@ class CakeHtmlReporter extends CakeBaseReporter {
echo "<div class='msg'><pre>" . $this->_htmlEntities($message->toString());
if ((is_string($actualMsg) && is_string($expectedMsg)) || (is_array($actualMsg) && is_array($expectedMsg))) {
echo "<br />" . PHPUnit_Util_Diff::diff($expectedMsg, $actualMsg);
echo "<br />" . $this->_htmlEntities(PHPUnit_Util_Diff::diff($expectedMsg, $actualMsg));
}
echo "</pre></div>\n";