Skip to content

Commit

Permalink
Skip more data sets on PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed May 14, 2024
1 parent 74e00fb commit 450ca76
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions tests/unit/Util/PHP/DefaultJobRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,41 +25,41 @@ final class DefaultJobRunnerTest extends TestCase
{
public static function provider(): Generator
{
yield 'output to stdout' => [
new Result('test', ''),
new Job(
<<<'EOT'
if (version_compare(PHP_VERSION, '8.3.0', '>')) {
yield 'output to stdout' => [
new Result('test', ''),
new Job(
<<<'EOT'
<?php declare(strict_types=1);
fwrite(STDOUT, 'test');
EOT
),
];
),
];

yield 'output to stderr' => [
new Result('', 'test'),
new Job(
<<<'EOT'
yield 'output to stderr' => [
new Result('', 'test'),
new Job(
<<<'EOT'
<?php declare(strict_types=1);
fwrite(STDERR, 'test');
EOT
),
];
),
];

yield 'output to stdout and stderr' => [
new Result('test-stdout', 'test-stderr'),
new Job(
<<<'EOT'
yield 'output to stdout and stderr' => [
new Result('test-stdout', 'test-stderr'),
new Job(
<<<'EOT'
<?php declare(strict_types=1);
fwrite(STDOUT, 'test-stdout');
fwrite(STDERR, 'test-stderr');
EOT
),
];
),
];

if (version_compare(PHP_VERSION, '8.3.0', '>')) {
yield 'stderr redirected to stdout' => [
new Result('test', ''),
new Job(
Expand Down

0 comments on commit 450ca76

Please sign in to comment.