diff --git a/tests/FunctionalExampleTest.php b/tests/FunctionalExampleTest.php index b138ae3..d6d4a99 100644 --- a/tests/FunctionalExampleTest.php +++ b/tests/FunctionalExampleTest.php @@ -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) { @@ -45,6 +49,10 @@ 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) { @@ -105,6 +113,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'); + } + if (defined('HHVM_VERSION')) { $this->markTestSkipped('Skipped interactive mode on HHVM'); }