in = new ConsoleInput(); } /** * Test dataAvailable method */ public function testDataAvailable(): void { $this->skipIf( (bool)env('GITHUB_ACTIONS'), 'Skip test for ConsoleInput::dataAvailable() on Github VM as stream_select() incorrectly return 1 even though no data is available on STDIN.' ); try { $this->assertFalse($this->in->dataAvailable()); } catch (ConsoleException) { $this->markTestSkipped( 'stream_select raised an exception. ' . 'This can happen when FD_SETSIZE is too small.' ); } } }