diff --git a/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php b/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php index 9ac13cbea..3e68005f3 100644 --- a/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php +++ b/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php @@ -248,7 +248,8 @@ class CakeHtmlReporter extends CakeBaseReporter { */ public function paintFail($message, $test) { $trace = $this->_getStackTrace($message); - $testName = get_class($test) . '::' . $test->getName() . '()'; + $className = get_class($test); + $testName = $className . '::' . $test->getName() . '()'; $actualMsg = $expectedMsg = null; if (method_exists($message, 'getComparisonFailure')) { @@ -269,8 +270,10 @@ class CakeHtmlReporter extends CakeBaseReporter { echo "\n"; echo "