public function PHPUnit_Framework_TestCase::setOutputCallback in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::setOutputCallback()
@since Method available since Release 3.6.0
Parameters
callable $callback:
Throws
File
- vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php, line 1162
Class
- PHPUnit_Framework_TestCase
- A TestCase defines the fixture to run multiple tests.
Code
public function setOutputCallback($callback) {
if (!is_callable($callback)) {
throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'callback');
}
$this->outputCallback = $callback;
}