protected function PHPUnit_TextUI_ResultPrinter::writeWithColor in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php \PHPUnit_TextUI_ResultPrinter::writeWithColor()
Writes a buffer out with a color sequence if colors are enabled.
@since Method available since Release 4.0.0
Parameters
string $color:
string $buffer:
bool $lf:
2 calls to PHPUnit_TextUI_ResultPrinter::writeWithColor()
- PHPUnit_TextUI_ResultPrinter::printFooter in vendor/
phpunit/ phpunit/ src/ TextUI/ ResultPrinter.php - PHPUnit_TextUI_ResultPrinter::writeCountString in vendor/
phpunit/ phpunit/ src/ TextUI/ ResultPrinter.php - @since Method available since Release 4.6.5
File
- vendor/
phpunit/ phpunit/ src/ TextUI/ ResultPrinter.php, line 592
Class
- PHPUnit_TextUI_ResultPrinter
- Prints the result of a TextUI TestRunner run.
Code
protected function writeWithColor($color, $buffer, $lf = true) {
$this
->write($this
->formatWithColor($color, $buffer));
if ($lf) {
$this
->write("\n");
}
}