File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
namespace PHPUnit \Util \PHP ;
11
11
12
+ use function version_compare ;
12
13
use Generator ;
13
14
use PHPUnit \Framework \Attributes \CoversClass ;
14
15
use PHPUnit \Framework \Attributes \DataProvider ;
@@ -58,17 +59,19 @@ public static function provider(): Generator
58
59
),
59
60
];
60
61
61
- yield 'stderr redirected to stdout ' => [
62
- new Result ('test ' , '' ),
63
- new Job (
64
- <<<'EOT'
62
+ if (version_compare (PHP_VERSION , '8.3.0 ' , '> ' )) {
63
+ yield 'stderr redirected to stdout ' => [
64
+ new Result ('test ' , '' ),
65
+ new Job (
66
+ <<<'EOT'
65
67
<?php declare(strict_types=1);
66
68
fwrite(STDERR, 'test');
67
69
68
70
EOT,
69
- redirectErrors: true ,
70
- ),
71
- ];
71
+ redirectErrors: true ,
72
+ ),
73
+ ];
74
+ }
72
75
73
76
yield 'configured environment variables ' => [
74
77
new Result ('test ' , '' ),
You can’t perform that action at this time.
0 commit comments