Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Merged
merged 1 commit into from
Aug 16, 2020
Merged

[VarDumper] Support PHPUnit --colors option #37840

merged 1 commit into from
Aug 16, 2020

Conversation

ogizanagi
Copy link
Contributor

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':
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return static::$defaultColors = true;

case '--no-ansi':
case '--color=no':
case '--color=none':
case '--color=never':
case '--colors=never':
Copy link
Member

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.

@fabpot
Copy link
Member

fabpot commented Aug 16, 2020

Thank you @ogizanagi.

@fabpot fabpot merged commit 8b3df37 into symfony:master Aug 16, 2020
@ogizanagi ogizanagi deleted the cli-dumper-phpunit-colors branch August 16, 2020 07:46
@fabpot fabpot mentioned this pull request Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants