/** * @expectedException RuntimeException */ public function testSetEnhanceSigchildCompatibilityCannotBeCalledIfProcessIsRunning() { $process = new Process('sleep 1'); $process->start($this->createLoop()); $process->setEnhanceSigchildCompatibility(false); }