Skip to content
Browse files

Fix possible notice errors.

  • Loading branch information...
1 parent 7d93c57 commit 87677e4cdfa0fee3374cd645d6acb59b9c6f2c04 @markstory markstory committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php
View
8 lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php
@@ -248,19 +248,19 @@ public function paintFail($message, $test) {
$trace = $this->_getStackTrace($message);
$testName = get_class($test) . '(' . $test->getName() . ')';
+ $actualMsg = $expectedMsg = null;
$failure = $message->getComparisonFailure();
if (is_object($failure)) {
- $actualMsg = $message->getComparisonFailure()->getActualAsString();
- $expectedMsg = $message->getComparisonFailure()->getExpectedAsString();
+ $actualMsg = $message->getComparisonFailure()->getActualAsString();
+ $expectedMsg = $message->getComparisonFailure()->getExpectedAsString();
}
echo "<li class='fail'>\n";
echo "<span>Failed</span>";
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 />" . PHPUnit_Util_Diff::diff($expectedMsg, $actualMsg);
}
echo "</pre></div>\n";

0 comments on commit 87677e4

Please sign in to comment.
Something went wrong with that request. Please try again.