Skip to content

Commit

Permalink
Skip failing tests for Github CI with PHP >= 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonFrings committed Jun 11, 2021
1 parent 6d65fcc commit 9906c65
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/FunctionalExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public function testPeriodicExampleWithSleepNoInputQuitsOnEnd()

public function testPeriodicExampleWithClosedInputQuitsImmediately()
{
if (getenv('CI') === 'true' && (defined('HHVM_VERSION') || PHP_VERSION_ID >= 70000)) {
$this->markTestSkipped('Test fails for Github CI with PHP >= 7.0 and HHVM');
}

$output = $this->execExample('php 01-periodic.php <&-');

if (strpos($output, 'said') !== false) {
Expand All @@ -45,6 +49,9 @@ public function testPeriodicExampleWithClosedInputQuitsImmediately()

public function testPeriodicExampleWithClosedInputAndOutputQuitsImmediatelyWithoutOutput()
{
if (getenv('CI') === 'true' && (defined('HHVM_VERSION') || PHP_VERSION_ID >= 70000)) {
$this->markTestSkipped('Test fails for Github CI with PHP >= 7.0 and HHVM');
}
$output = $this->execExample('php 01-periodic.php <&- >&- 2>&-');

if (strpos($output, 'said') !== false) {
Expand Down Expand Up @@ -105,6 +112,10 @@ public function testStubCanEndWithoutReadlineFunctions()

public function testPeriodicExampleViaInteractiveModeQuitsImmediately()
{
if(getenv('CI') === 'true' && PHP_VERSION_ID >= 70000) {
$this->markTestSkipped('Test fails for Github CI with PHP >= 7.0 and HHVM');
}

if (defined('HHVM_VERSION')) {
$this->markTestSkipped('Skipped interactive mode on HHVM');
}
Expand Down

0 comments on commit 9906c65

Please sign in to comment.