markTestSkipped(); // There will be an exception, due to the way the test suite is run $this->expectException(TermiosException::class); $this->assertNotEquals(NULL, Termios::enableRawMode()); } /** * @depends testEnableRawMode */ public function testEnableRowModeTwice(): void { $this->assertNull(Termios::enableRawMode()); } /** * @depends testEnableRawMode */ public function testDisableRawMode(): void { // There will be an exception, due to the way the test suite is run $this->expectException(TermiosException::class); $this->assertFalse(Termios::disableRawMode()); } }