/** * An error occurred. * * @param \PHPUnit_Framework_Test $test * @param \Exception $e * @param float $time */ public function addError(\PHPUnit_Framework_Test $test, \Exception $e, $time) { if (!$this->colors) { parent::addError($test, $e, $time); return; } $this->writeProgress(Coloring::magenta('E')); $this->lastTestFailed = true; }
/** * An error occurred. * * @param \PHPUnit_Framework_Test $test * @param \Exception $e * @param float $time */ public function addError(\PHPUnit_Framework_Test $test, \Exception $e, $time) { $message = 'raised an error'; $this->write($this->colors ? Coloring::magenta($message) : $message); parent::addError($test, $e, $time); }