/** * Test background with foreground colors... * * @depends test_class_defined */ public function test_foreground_with_background_colors() { // Bright foreground camel case $this->assertEquals("[47;1;30m", ansi::Black_on_white()); $this->assertEquals("[47;1;31m", ansi::Red_on_white()); $this->assertEquals("[43;1;32m", ansi::Green_on_yellow()); // Bright foreground all caps $this->assertEquals("[47;1;30m", ansi::BLACK_ON_WHITE()); $this->assertEquals("[47;1;31m", ansi::RED_ON_WHITE()); $this->assertEquals("[43;1;32m", ansi::GREEN_ON_YELLOW()); // Normal foreground camel case $this->assertEquals("[47;30m", ansi::black_on_white()); $this->assertEquals("[47;31m", ansi::red_on_white()); $this->assertEquals("[43;32m", ansi::green_on_yellow()); }