9951 explained code solutions for 126 technologies

phpunitHow to disable color output in PHPUnit?

To disable color output in PHPUnit, you can use the --no-colors flag when running the test suite. For example:

$ phpunit --no-colors

This will disable all color output from PHPUnit.

Code explanation

  • phpunit: The command to run the test suite
  • --no-colors: The flag to disable color output

No relevant links.

Edit this code on GitHub