File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -62,33 +62,33 @@ public function print(TestResult $result): void
6262 return ;
6363 }
6464
65- $ color = 'fg-black, bg-yellow ' ;
66-
6765 if ($ result ->wasSuccessful ()) {
6866 if ($ result ->hasIssues ()) {
67+ $ color = 'fg-black, bg-yellow ' ;
68+
6969 $ this ->printWithColor (
7070 $ color ,
7171 'OK, but there were issues! ' ,
7272 );
7373 } else {
74+ $ color = 'fg-black, bg-green ' ;
75+
7476 $ this ->printWithColor (
7577 $ color ,
7678 'OK, but some tests were skipped! ' ,
7779 );
7880 }
7981 } else {
80- if ($ result ->hasTestErroredEvents () || $ result ->hasTestTriggeredPhpunitErrorEvents ()) {
81- $ color = 'fg-white, bg-red ' ;
82+ $ color = 'fg-white, bg-red ' ;
8283
84+ if ($ result ->hasTestErroredEvents () || $ result ->hasTestTriggeredPhpunitErrorEvents ()) {
8385 $ this ->printWithColor (
84- $ color ,
86+ ' fg-white, bg-red ' ,
8587 'ERRORS! ' ,
8688 );
8789 } else {
88- $ color = 'fg-white, bg-red ' ;
89-
9090 $ this ->printWithColor (
91- $ color ,
91+ ' fg-white, bg-red ' ,
9292 'FAILURES! ' ,
9393 );
9494 }
You can’t perform that action at this time.
0 commit comments