Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip failing tests on bugged versions (PHP 8.1.7 and PHP 8.0.20 only) #96

Merged
merged 1 commit into from Jun 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions tests/AbstractProcessTest.php
Expand Up @@ -643,6 +643,10 @@ public function testDetectsClosingStdoutWithoutHavingToWaitForExit()
$this->markTestSkipped('Process pipes not supported on Windows');
}

if (PHP_VERSION_ID === 80107 || PHP_VERSION_ID === 80020) {
$this->markTestSkipped('Skip bugged PHP version: https://github.com/php/php-src/issues/8827');
}

$cmd = 'exec ' . $this->getPhpBinary() . ' -r ' . escapeshellarg('fclose(STDOUT); sleep(1);');

$loop = $this->createLoop();
Expand All @@ -669,6 +673,10 @@ public function testDetectsClosingStdoutWithoutHavingToWaitForExit()
*/
public function testDetectsClosingStdoutSocketWithoutHavingToWaitForExit()
{
if (PHP_VERSION_ID === 80107 || PHP_VERSION_ID === 80020) {
$this->markTestSkipped('Skip bugged PHP version: https://github.com/php/php-src/issues/8827');
}

$loop = $this->createLoop();
$process = new Process(
(DIRECTORY_SEPARATOR === '\\' ? '' : 'exec ') . $this->getPhpBinary() . ' -r ' . escapeshellarg('fclose(STDOUT); sleep(1);'),
Expand Down Expand Up @@ -703,6 +711,10 @@ public function testKeepsRunningEvenWhenAllStdioPipesHaveBeenClosed()
$this->markTestSkipped('Process pipes not supported on Windows');
}

if (PHP_VERSION_ID === 80107 || PHP_VERSION_ID === 80020) {
$this->markTestSkipped('Skip bugged PHP version: https://github.com/php/php-src/issues/8827');
}

$cmd = 'exec ' . $this->getPhpBinary() . ' -r ' . escapeshellarg('fclose(STDIN);fclose(STDOUT);fclose(STDERR);sleep(1);');

$loop = $this->createLoop();
Expand Down Expand Up @@ -738,6 +750,10 @@ public function testKeepsRunningEvenWhenAllStdioPipesHaveBeenClosed()
*/
public function testKeepsRunningEvenWhenAllStdioSocketsHaveBeenClosed()
{
if (PHP_VERSION_ID === 80107 || PHP_VERSION_ID === 80020) {
$this->markTestSkipped('Skip bugged PHP version: https://github.com/php/php-src/issues/8827');
}

$loop = $this->createLoop();
$process = new Process(
(DIRECTORY_SEPARATOR === '\\' ? '' : 'exec ') . $this->getPhpBinary() . ' -r ' . escapeshellarg('fclose(STDIN);fclose(STDOUT);fclose(STDERR);sleep(1);'),
Expand Down