public function testGetParent() { $process = Process::fork(function () { usleep(1000); }); $parent = $process->getParent(); $this->assertEquals($parent->getPid(), Process::current()->getPid()); pcntl_wait($st); }