public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time) { if ($this->debug) { return parent::addFailure($test, $e, $time); } $this->writeProgress('fail'); $this->lastTestFailed = TRUE; }