sebastianbergmann/phpunit — pull request #563 by willemstuursma (2012-05-08 14:26:29+00:00)
Title: Don't use colors in output when output is not an interactive shell 

When piping phpunit output to less or some other program, the ANSI codes for colors show up as literals instead of changing the colors out the output.

Ignore the --colors option when the stdout is not a tty.

If it cannot be determined if stdout is a tty (e.g. the POSIX extension is not installed), then the --colors option will be honored.