File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1111 strategy :
1212 fail-fast : false # dont fast fail
1313 matrix :
14- php : [7.1, 7.2, 7.3, 7.4]
14+ php : [7.1] # , 7.2, 7.3, 7.4
1515 os : [ubuntu-latest, windows-latest, macOS-latest]
1616
1717 steps :
2626 coverage : none # optional, setup coverage driver: xdebug, none
2727 pecl : true
2828
29- - name : Install extensions
30- run : |
31- php -m
29+ - name : Display Env
30+ run : env
3231# sudo pecl update-channels && pecl install -f msgpack && pecl install -f igbinary && php -m
3332
3433 - name : Install dependencies
Original file line number Diff line number Diff line change 3333 }
3434 },
3535 "scripts" : {
36- "test" : " ./ vendor/bin/phpunit"
36+ "test" : " vendor/bin/phpunit"
3737 },
3838 "suggest" : {
3939 "inhere/php-validate" : " Very lightweight data validate tool" ,
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ class ColorTest extends TestCase
1414{
1515 public function testRender (): void
1616 {
17+ if (!Cli::isSupportColor ()) {
18+ return ;
19+ }
20+
1721 $ text = Color::render ('text ' , 'info ' );
1822 $ this ->assertStringContainsString (Color::STYLES ['info ' ], $ text );
1923
@@ -32,6 +36,10 @@ public function testRender(): void
3236
3337 public function testApply (): void
3438 {
39+ if (!Cli::isSupportColor ()) {
40+ return ;
41+ }
42+
3543 $ text = Color::apply ('info ' , 'text ' );
3644 $ this ->assertStringContainsString (Color::STYLES ['info ' ], $ text );
3745
You can’t perform that action at this time.
0 commit comments