addError() public method

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)
 {
     if ($this->_verbose) {
         echo $e;
     }
     return parent::addError($test, $e, $time);
 }
 /**
  * {@inheritdoc}
  */
 public function addError(\PHPUnit_Framework_Test $test, \Exception $e, $time)
 {
     if ($this->debug) {
         return parent::addError($test, $e, $time);
     }
     $this->writeProgress('fail');
     $this->lastTestFailed = TRUE;
 }
Esempio n. 3
0
 /**
  * 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(Stagehand_TestRunner_Coloring::magenta('E'));
     $this->lastTestFailed = TRUE;
 }
Esempio n. 4
0
 public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
 {
     if ($this->verbose) {
         echo "        ERROR: '" . $e->getMessage() . "'\n" . $e->getTraceAsString();
     }
     parent::addError($test, $e, $time);
     if ($this->_blDBResetPerTest && !isset($test->blNoDbResetAfterTest)) {
         $this->_oDBMaintenance->restoreDB($this->_iDBChangeMode, $this->_iDBChangeOutput);
         echo "|";
     }
 }
 /**
  * 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 ? Stagehand_TestRunner_Coloring::magenta($message) : $message);
     parent::addError($test, $e, $time);
 }
 /**
  * An error occurred.
  *
  * @param PHPUnit_Framework_Test $test
  * @param Exception $e
  * @param float $time
  */
 public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
 {
     parent::addError($test, $e, $time);
     wfDebugLog($this->logChannel, 'ERROR in ' . $this->getTestName($test) . ': ' . $this->getErrorName($e));
 }
Esempio n. 7
0
 public function addError(\PHPUnit_Framework_Test $test, \Exception $e, $time)
 {
     $this->write('<span style="color:red">');
     parent::addError($test, $e, $time);
     $this->write('</span>');
 }