publicfunctiontestDisableOutputWhileRunningThrowsException() { $this->expectException(RuntimeException::class); $this->expectExceptionMessage('Disabling output while the process is running is not possible.'); $p = $this->getProcessForCode('sleep(39);'); $p->start(); $p->disableOutput(); }