Skip to content

Commit

Permalink
Fixed test suite ending abruptly after failed test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudolf Halas authored Oct 22, 2016
1 parent 0a15837 commit 832eefb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Printer.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,15 @@ public function endTest(PHPUnit_Framework_Test $test, $time)

if (!$this->lastTestFailed) {
$this->writeProgress('.');
$this->lastTestFailed = false;
}

if ($test instanceof PHPUnit_Framework_TestCase) {
$this->numAssertions += $test->getNumAssertions();
} elseif ($test instanceof PHPUnit_Extensions_PhptTestCase) {
$this->numAssertions++;
}

$this->lastTestFailed = false;

if ($test instanceof PHPUnit_Framework_TestCase) {
if (method_exists($this, 'hasExpectationOnOutput') && !$test->hasExpectationOnOutput()) {
Expand Down

0 comments on commit 832eefb

Please sign in to comment.