PHPUnit_TextUI_ResultPrinter::addError PHP Méthode

addError() public méthode

An error occurred.
public addError ( PHPUnit_Framework_Test $test, Exception $e, float $time )
$test PHPUnit_Framework_Test
$e Exception
$time float
    public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
    {
        $this->writeProgressWithColor('fg-red, bold', 'E');
        $this->lastTestFailed = true;
    }

Usage Example

 public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
 {
     if ($this->_verbose) {
         echo $e;
     }
     return parent::addError($test, $e, $time);
 }
All Usage Examples Of PHPUnit_TextUI_ResultPrinter::addError