You are here

public function PHPUnit_Util_TestDox_ResultPrinter::addError in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter.php \PHPUnit_Util_TestDox_ResultPrinter::addError()

An error occurred.

Parameters

PHPUnit_Framework_Test $test:

Exception $e:

float $time:

Overrides PHPUnit_Framework_TestListener::addError

File

vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter.php, line 104

Class

PHPUnit_Util_TestDox_ResultPrinter
Base class for printers of TestDox documentation.

Code

public function addError(PHPUnit_Framework_Test $test, Exception $e, $time) {
  if (!$this
    ->isOfInterest($test)) {
    return;
  }
  $this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_ERROR;
  $this->failed++;
}