mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix web runner showing fails as passes when show_passes is on.
Fixes #3035
This commit is contained in:
parent
8fc5726920
commit
46f8de72a2
1 changed files with 3 additions and 0 deletions
|
@ -201,6 +201,9 @@ class CakeBaseReporter extends PHPUnit_TextUI_ResultPrinter {
|
|||
*/
|
||||
public function endTest(PHPUnit_Framework_Test $test, $time) {
|
||||
$this->numAssertions += $test->getNumAssertions();
|
||||
if ($test->hasFailed()) {
|
||||
return;
|
||||
}
|
||||
$this->paintPass($test, $time);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue