Exemple #1
0
 /**
  * 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("WTF!", ansi::error("WTF!"));
     $this->assertEquals("OK", ansi::success("OK"));
     $this->assertEquals("DOH!", ansi::warning("DOH!"));
 }