diff --git a/src/Printer.php b/src/Printer.php index e47a07d..cf9d0c2 100644 --- a/src/Printer.php +++ b/src/Printer.php @@ -73,7 +73,6 @@ public function endTest(PHPUnit_Framework_Test $test, $time) if (!$this->lastTestFailed) { $this->writeProgress('.'); - $this->lastTestFailed = false; } if ($test instanceof PHPUnit_Framework_TestCase) { @@ -81,6 +80,8 @@ public function endTest(PHPUnit_Framework_Test $test, $time) } elseif ($test instanceof PHPUnit_Extensions_PhptTestCase) { $this->numAssertions++; } + + $this->lastTestFailed = false; if ($test instanceof PHPUnit_Framework_TestCase) { if (method_exists($this, 'hasExpectationOnOutput') && !$test->hasExpectationOnOutput()) {