You are here

public function PHPUnit_Util_TestDox_ResultPrinter::addFailure in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter.php \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

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

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 (!$this
    ->isOfInterest($test)) {
    return;
  }
  $this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE;
  $this->failed++;
}