public function PHPUnit_Util_TestDox_ResultPrinter::addError

An error occurred.

Parameters

PHPUnit_Framework_Test $test:

Exception $e:

float $time:

Overrides PHPUnit_Framework_TestListener::addError

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter.php, line 146

Class

PHPUnit_Util_TestDox_ResultPrinter
Base class for printers of TestDox documentation.

Code

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