-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[VarDumper] Support PHPUnit --colors option #37840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ogizanagi
commented
Aug 14, 2020
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | yes |
Deprecations? | no |
Tickets | N/A |
License | MIT |
Doc PR | N/A |
@@ -522,12 +522,14 @@ protected function supportsColors() | |||
case '--color=yes': | |||
case '--color=force': | |||
case '--color=always': | |||
case '--colors=always': |
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.
Does --colors also support yes and force as a value?
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.
Nope, it doesn't: https://phpunit.readthedocs.io/en/9.3/textui.html?highlight=--colors#command-line-options
The only three values supported are auto
, never
and always
:
https://github.com/sebastianbergmann/phpunit/blob/19e27be279ab0056984a42f93dace950d9116ba7/src/TextUI/DefaultResultPrinter.php#L65
return static::$defaultColors = true; | ||
|
||
case '--no-ansi': | ||
case '--color=no': | ||
case '--color=none': | ||
case '--color=never': | ||
case '--colors=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.
Same here, I think it supports all possible values as well.
Thank you @ogizanagi. |