-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
coverage-text: do not use colors if --colors=never #1907
coverage-text: do not use colors if --colors=never #1907
Conversation
@@ -490,6 +490,9 @@ class_exists($arguments['printer'], false)) { | |||
if ($arguments['coverageText'] == 'php://stdout') { | |||
$outputStream = $this->printer; | |||
$colors = $arguments['colors']; | |||
if($colors == PHPUnit_TextUI_ResultPrinter::COLOR_NEVER) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not just $colors = $arguments['colors'] && $arguments['colors'] != PHPUnit_TextUI_ResultPrinter::COLOR_NEVER
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just thinking about avoiding a double assignment - maybe your way is more readable though :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, just thought about the same thing... will change it
there is no coverage driver for PHP 7 on travis right now, so just skip it. it can be enabled as soon as xdebug supports code coverage on PHP 7
👍 |
Merged manually, thanks. |
👍 |
Don't use colors when using
--coverage-text
along with--colors=never
.See #1771 and #1892
(replaces #1906)