Fix web runner showing fails as passes when show_passes is on.

Fixes #3035
This commit is contained in:
mark_story 2012-07-13 22:58:07 -04:00
parent 8fc5726920
commit 46f8de72a2

View file

@ -201,6 +201,9 @@ class CakeBaseReporter extends PHPUnit_TextUI_ResultPrinter {
*/ */
public function endTest(PHPUnit_Framework_Test $test, $time) { public function endTest(PHPUnit_Framework_Test $test, $time) {
$this->numAssertions += $test->getNumAssertions(); $this->numAssertions += $test->getNumAssertions();
if ($test->hasFailed()) {
return;
}
$this->paintPass($test, $time); $this->paintPass($test, $time);
} }