File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 7
7
convertErrorsToExceptions =" true"
8
8
convertNoticesToExceptions =" true"
9
9
convertWarningsToExceptions =" true"
10
+ printerClass =" Illuminate\Tests\IgnoreSkippedPrinter"
10
11
processIsolation =" false"
11
12
stopOnError =" false"
12
13
stopOnFailure =" false"
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Illuminate \Tests ;
4
+
5
+ use PHPUnit \Framework \TestResult ;
6
+ use PHPUnit \Runner \Version ;
7
+ use PHPUnit \TextUI \DefaultResultPrinter as PHPUnit9ResultPrinter ;
8
+ use PHPUnit \TextUI \ResultPrinter as PHPUnit8ResultPrinter ;
9
+
10
+ if (class_exists (Version::class) && (int ) Version::series ()[0 ] >= 9 ) {
11
+ class IgnoreSkippedPrinter extends PHPUnit9ResultPrinter
12
+ {
13
+ protected function printSkipped (TestResult $ result ): void
14
+ {
15
+ //
16
+ }
17
+ }
18
+ } else {
19
+ class IgnoreSkippedPrinter extends PHPUnit8ResultPrinter
20
+ {
21
+ protected function printSkipped (TestResult $ result ): void
22
+ {
23
+ //
24
+ }
25
+ }
26
+ }
You can’t perform that action at this time.
0 commit comments