Skip to content

Commit

Permalink
do not use colors in coverage-text when --colors=never
Browse files Browse the repository at this point in the history
refs #1771
refs #1892
  • Loading branch information
gkralik authored and sebastianbergmann committed Oct 14, 2015
1 parent c3a9db4 commit cf9faf7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TextUI/TestRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,9 @@ class_exists($arguments['printer'], false)) {
if ($arguments['coverageText'] == 'php://stdout') {
$outputStream = $this->printer;
$colors = $arguments['colors'];
if($colors == PHPUnit_TextUI_ResultPrinter::COLOR_NEVER) {
$colors = false;
}
} else {
$outputStream = new PHPUnit_Util_Printer($arguments['coverageText']);
$colors = false;
Expand Down

0 comments on commit cf9faf7

Please sign in to comment.