public function PHPUnit_Util_TestDox_ResultPrinter::addFailure

A failure occurred.

Parameters

PHPUnit_Framework_Test $test:

PHPUnit_Framework_AssertionFailedError $e:

float $time:

Overrides PHPUnit_Framework_TestListener::addFailure

File

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

Class

PHPUnit_Util_TestDox_ResultPrinter
Base class for printers of TestDox documentation.

Code

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