WordPress.org

Make WordPress Core

Changeset 927 in tests


Ignore:
Timestamp:
07/19/2012 07:37:43 PM (6 years ago)
Author:
nacin
Message:

Colorize our own post-run warnings and notices.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootstrap.php

    r926 r927  
    121121
    122122    static function ajaxTestsWereNotRun() {
    123         echo PHP_EOL . 'By default, Ajax tests are not run. To execute these, use `phpunit --group ajax`' . PHP_EOL;
     123        echo PHP_EOL . "\x1b[0m\x1b[30;43m\x1b[2K";
     124        echo 'INFO: By default, Ajax tests are not run. To execute these, use `phpunit --group ajax`' . PHP_EOL;
     125        echo "\x1b[0m\x1b[2K";
    124126    }
    125127
    126128    static function multisiteWasNotRun() {
    127         echo PHP_EOL . 'To run the tests using multisite, use `phpunit -c multisite`' . PHP_EOL;
     129        echo PHP_EOL . "\x1b[0m\x1b[30;43m\x1b[2K";
     130        echo 'INFO: To run the tests using multisite, use `phpunit -c multisite`' . PHP_EOL;
     131        echo "\x1b[0m\x1b[2K";
    128132    }
    129133}
  • trunk/includes/trac.php

    r921 r927  
    4242
    4343    public static function usingLocalCache() {
    44         echo PHP_EOL . "Trac was inaccessible, so a local ticket status cache was used." . PHP_EOL;
     44        echo PHP_EOL . "\x1b[0m\x1b[30;43m\x1b[2K";
     45        echo 'INFO: Trac was inaccessible, so a local ticket status cache was used.' . PHP_EOL;
     46        echo "\x1b[0m\x1b[2K";
    4547    }
    4648
    4749    public static function forcingKnownBugs() {
    48         echo PHP_EOL . "Trac was inaccessible, so known bugs weren't able to be skipped." . PHP_EOL;
     50        echo PHP_EOL . "\x1b[0m\x1b[37;41m\x1b[2K";
     51        echo "ERROR: Trac was inaccessible, so known bugs weren't able to be skipped." . PHP_EOL;
     52        echo "\x1b[0m\x1b[2K";
    4953    }
    5054}
Note: See TracChangeset for help on using the changeset viewer.