PHPStorm + PHPUnit Color output
问题 So I have PHPUnit running in PHPStorm 7.1, but I can't find out how to get the ANSI color codes working from within tests. My PHPunit.xml has colors = "true" in the property list, but every time I try something like: echo "\033[31mError! Error!\033[0m\n"; Inside one of my test cases, it just gives me: [31mError! Error![0m in the PHPstorm phpunit output. Is there any way to make the colors appear properly when using ANSI color codes in tests in PHPStorm? 回答1: PhpStorm has special integration