/** * Color code definitions / aliases. * * @depends test_class_defined */ public function test_color_aliases() { ansi::define("error", "Red_on_white"); ansi::define("success", "GREEN"); ansi::define("warning", "Yellow"); $this->assertEquals("[47;1;31mWTF![0m", ansi::error("WTF!")); $this->assertEquals("[1;32mOK[0m", ansi::success("OK")); $this->assertEquals("[1;33mDOH![0m", ansi::warning("DOH!")); }