protected function PHPUnit_Util_Log_TAP::writeNotOk in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Util/Log/TAP.php \PHPUnit_Util_Log_TAP::writeNotOk()
Parameters
PHPUnit_Framework_Test $test:
string $prefix:
string $directive:
3 calls to PHPUnit_Util_Log_TAP::writeNotOk()
- PHPUnit_Util_Log_TAP::addError in vendor/
phpunit/ phpunit/ src/ Util/ Log/ TAP.php - An error occurred.
- PHPUnit_Util_Log_TAP::addFailure in vendor/
phpunit/ phpunit/ src/ Util/ Log/ TAP.php - A failure occurred.
- PHPUnit_Util_Log_TAP::addIncompleteTest in vendor/
phpunit/ phpunit/ src/ Util/ Log/ TAP.php - Incomplete test.
File
- vendor/
phpunit/ phpunit/ src/ Util/ Log/ TAP.php, line 216
Class
- PHPUnit_Util_Log_TAP
- A TestListener that generates a logfile of the test execution using the Test Anything Protocol (TAP).
Code
protected function writeNotOk(PHPUnit_Framework_Test $test, $prefix = '', $directive = '') {
$this
->write(sprintf("not ok %d - %s%s%s\n", $this->testNumber, $prefix != '' ? $prefix . ': ' : '', PHPUnit_Util_Test::describe($test), $directive != '' ? ' # ' . $directive : ''));
$this->testSuccessful = false;
}