Skip to content

Commit 5fc43fb

Browse files
committed
Use 256 colors in test_custom_style test
1 parent 96c51fe commit 5fc43fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Output/ColorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ public function test_comment()
3030

3131
public function test_custom_style()
3232
{
33-
Color::style('alert', ['bg' => Color::YELLOW, 'fg' => Color::RED]);
33+
Color::style('alert', ['bg' => '48;5;82', 'fg' => '38;5;57']);
3434

35-
$this->assertSame("\033[0;31;43malert\033[0m", (new Color)->alert('alert'));
36-
$this->assertSame("\033[1;31;43malert\033[0m", (new Color)->boldAlert('alert'));
37-
$this->assertSame("\033[1;31;43malert\033[0m", (new Color)->alertBold('alert'));
35+
$this->assertSame("\033[0;38;5;57;48;5;82malert\033[0m", (new Color)->alert('alert'));
36+
$this->assertSame("\033[1;38;5;57;48;5;82malert\033[0m", (new Color)->boldAlert('alert'));
37+
$this->assertSame("\033[1;38;5;57;48;5;82malert\033[0m", (new Color)->alertBold('alert'));
3838
}
3939

4040
public function test_invalid_custom_style()

0 commit comments

Comments
 (0)