/** * Color code stack tests. * * @depends test_class_defined */ public function test_color_is_saved_and_restored() { $color_blue = ansi::blue(); $color_red = ansi::red(); $restored = ansi::restore(); $reset = ansi::restore(); $this->assertEquals("[34m", $color_blue); $this->assertEquals("[31m", $color_red); $this->assertEquals("[34m", $restored); $this->assertEquals("[0m", $reset); }