public function testGetParent_ProcessInBackground() { $process = Process::fork(function () { Process::toBackground(); usleep(5000); }); usleep(2000); $parent = Process::process($process->getPid())->getParent(); $this->assertNull($parent); }