You are here

public function PHPUnit_Util_TestDox_ResultPrinter::addRiskyTest 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::addRiskyTest()

Risky test.

@since Method available since Release 4.0.0

Parameters

PHPUnit_Framework_Test $test:

Exception $e:

float $time:

Overrides PHPUnit_Framework_TestListener::addRiskyTest

File

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

Class

PHPUnit_Util_TestDox_ResultPrinter
Base class for printers of TestDox documentation.

Code

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