We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e6c2ad commit 74e00fbCopy full SHA for 74e00fb
1 file changed
tests/unit/Util/PHP/DefaultJobRunnerTest.php
@@ -9,6 +9,7 @@
9
*/
10
namespace PHPUnit\Util\PHP;
11
12
+use function version_compare;
13
use Generator;
14
use PHPUnit\Framework\Attributes\CoversClass;
15
use PHPUnit\Framework\Attributes\DataProvider;
@@ -58,17 +59,19 @@ public static function provider(): Generator
58
59
),
60
];
61
- yield 'stderr redirected to stdout' => [
62
- new Result('test', ''),
63
- new Job(
64
- <<<'EOT'
+ if (version_compare(PHP_VERSION, '8.3.0', '>')) {
+ yield 'stderr redirected to stdout' => [
+ new Result('test', ''),
65
+ new Job(
66
+ <<<'EOT'
67
<?php declare(strict_types=1);
68
fwrite(STDERR, 'test');
69
70
EOT,
- redirectErrors: true,
- ),
71
- ];
+ redirectErrors: true,
72
+ ),
73
+ ];
74
+ }
75
76
yield 'configured environment variables' => [
77
new Result('test', ''),
0 commit comments