You are here

public function PHPUnit_TextUI_ResultPrinter::addFailure in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php \PHPUnit_TextUI_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/TextUI/ResultPrinter.php, line 403

Class

PHPUnit_TextUI_ResultPrinter
Prints the result of a TextUI TestRunner run.

Code

public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) {
  $this
    ->writeProgressWithColor('bg-red, fg-white', 'F');
  $this->lastTestFailed = true;
}