WordPress.org

Make WordPress Core

Ticket #12277: 12277.patch

File 12277.patch, 581 bytes (added by hakre, 8 years ago)

Worked like a charm.

  • wp-testlib/base.php

     
    523523        #return PHPUnit::run($suite);
    524524        $result = new PHPUnit_Framework_TestResult;
    525525        require_once('PHPUnit/TextUI/ResultPrinter.php');
    526         $printer = new PHPUnit_TextUI_ResultPrinter(NULL,true,true);
     526        $printer = new PHPUnit_TextUI_ResultPrinter( NULL, true, $colors = !((bool) stristr(PHP_OS, 'WIN')) );
    527527        $result->addListener($printer);
    528528        return array($suite->run($result), $printer);
    529529}