addFailure() публичный Метод

A failure occurred.
public addFailure ( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, float $time )
$test PHPUnit_Framework_Test
$e PHPUnit_Framework_AssertionFailedError
$time float
 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     if ($this->_verbose) {
         echo $e;
     }
     return parent::addFailure($test, $e, $time);
 }
 /**
  * {@inheritdoc}
  */
 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;
 }
Пример #3
0
 /**
  * A failure occurred.
  *
  * @param  PHPUnit_Framework_Test                 $test
  * @param  PHPUnit_Framework_AssertionFailedError $e
  * @param  float                                  $time
  */
 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     if (!$this->colors) {
         parent::addFailure($test, $e, $time);
         return;
     }
     $this->writeProgress(Stagehand_TestRunner_Coloring::red('F'));
     $this->lastTestFailed = TRUE;
 }
Пример #4
0
 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     if ($this->verbose) {
         echo "        FAIL: '" . $e->getMessage() . "'\n" . $e->getTraceAsString();
     }
     parent::addFailure($test, $e, $time);
     if ($this->_blDBResetPerTest && !isset($test->blNoDbResetAfterTest)) {
         $this->_oDBMaintenance->restoreDB($this->_iDBChangeMode, $this->_iDBChangeOutput);
         echo "|";
     }
 }
 /**
  * A failure occurred.
  *
  * @param  PHPUnit_Framework_Test                 $test
  * @param  PHPUnit_Framework_AssertionFailedError $e
  * @param  float                                  $time
  */
 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     $message = 'failed';
     $this->write($this->colors ? Stagehand_TestRunner_Coloring::red($message) : $message);
     parent::addFailure($test, $e, $time);
 }
 /**
  * A failure occurred.
  *
  * @param PHPUnit_Framework_Test $test
  * @param PHPUnit_Framework_AssertionFailedError $e
  * @param float $time
  */
 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     parent::addFailure($test, $e, $time);
     wfDebugLog($this->logChannel, 'FAILURE in ' . $this->getTestName($test) . ': ' . $this->getErrorName($e));
 }
Пример #7
0
 public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     $this->write('<span style="color:red">');
     parent::addFailure($test, $e, $time);
     $this->write('</span>');
 }