Skip to content

Commit

Permalink
Fix web runner showing fails as passes when show_passes is on.
Browse files Browse the repository at this point in the history
Fixes #3035
  • Loading branch information
markstory committed Jul 14, 2012
1 parent 8fc5726 commit 46f8de7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Cake/TestSuite/Reporter/CakeBaseReporter.php
Expand Up @@ -201,6 +201,9 @@ public function startTest(PHPUnit_Framework_Test $test) {
*/
public function endTest(PHPUnit_Framework_Test $test, $time) {
$this->numAssertions += $test->getNumAssertions();
if ($test->hasFailed()) {
return;
}
$this->paintPass($test, $time);
}

Expand Down

1 comment on commit 46f8de7

@lsiden
Copy link

@lsiden lsiden commented on 46f8de7 Jul 15, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, Mark!

Please sign in to comment.