Make WordPress Core

Changeset 927 in tests for trunk/includes/trac.php


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

Colorize our own post-run warnings and notices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.