I’m testing under Windows and the command prompt doesn’t do so well with the ANSI color codes that appear by default. How can I turn off the color display when I’m using Laravel?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The file \laravel\cli\tasks\test\stub.xml is used to generate the PhpUnit configuration file for tests. (A new configuration file is generated and deleted every time you run an artisan test task.) To turn off colors, change the first line of stub.xml from
<phpunit colors="true"to<phpunit colors="false"(for Laravel 3)Update: For Laravel 4, the file is
phpunit.xmland is found in the root folder. The change is still to setcolors="false".