public function PHPUnit_Util_Log_TAP::addSkippedTest in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/src/Util/Log/TAP.php \PHPUnit_Util_Log_TAP::addSkippedTest()
Skipped test.
@since Method available since Release 3.0.0
Parameters
PHPUnit_Framework_Test $test:
Exception $e:
float $time:
Overrides PHPUnit_Framework_TestListener::addSkippedTest
File
- vendor/
phpunit/ phpunit/ src/ Util/ Log/ TAP.php, line 142
Class
- PHPUnit_Util_Log_TAP
- A TestListener that generates a logfile of the test execution using the Test Anything Protocol (TAP).
Code
public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) {
$this
->write(sprintf("ok %d - # SKIP%s\n", $this->testNumber, $e
->getMessage() != '' ? ' ' . $e
->getMessage() : ''));
$this->testSuccessful = false;
}