You are here

public function PHPUnit_Util_Log_TAP::addRiskyTest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Util/Log/TAP.php \PHPUnit_Util_Log_TAP::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/Log/TAP.php, line 121

Class

PHPUnit_Util_Log_TAP
A TestListener that generates a logfile of the test execution using the Test Anything Protocol (TAP).

Code

public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time) {
  $this
    ->write(sprintf("ok %d - # RISKY%s\n", $this->testNumber, $e
    ->getMessage() != '' ? ' ' . $e
    ->getMessage() : ''));
  $this->testSuccessful = false;
}