From 832eefbba1f8201ffd615dbaeea933ff7ea26d26 Mon Sep 17 00:00:00 2001 From: Rudolf Halas Date: Sat, 22 Oct 2016 18:04:37 +0200 Subject: [PATCH] Fixed test suite ending abruptly after failed test. --- src/Printer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) {