WordPress.org

Make WordPress Core

Changeset 345 in tests


Ignore:
Timestamp:
03/27/11 01:43:45 (3 years ago)
Author:
dd32
Message:

Disable colour output on Windows systems. Props hakre for initial patch. Fixes #2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testlib/base.php

    r341 r345  
    546546    $result = new PHPUnit_Framework_TestResult; 
    547547    require_once('PHPUnit/TextUI/ResultPrinter.php'); 
    548     $printer = new PHPUnit_TextUI_ResultPrinter(NULL,true,true); 
     548    $printer = new PHPUnit_TextUI_ResultPrinter(NULL, true, !stristr(PHP_OS, 'WIN') ); 
    549549    $result->addListener($printer); 
    550550    return array($suite->run($result), $printer); 
Note: See TracChangeset for help on using the changeset viewer.