Comos\Qpm\Process\ProcessTest::testGetParent_ProcessInBackground PHP Метод

testGetParent_ProcessInBackground() публичный Метод

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