File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ public function test_comment()
30
30
31
31
public function test_custom_style ()
32
32
{
33
- Color::style ('alert ' , ['bg ' => Color:: YELLOW , 'fg ' => Color:: RED ]);
33
+ Color::style ('alert ' , ['bg ' => ' 48;5;82 ' , 'fg ' => ' 38;5;57 ' ]);
34
34
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 ' ));
38
38
}
39
39
40
40
public function test_invalid_custom_style ()
You can’t perform that action at this time.
0 commit comments