PhpBench\Tests\Unit\Environment\Provider\PhpTest::testRemote PHP Метод

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

It should get the version from the remote process if the configured PHP binary is different from the one being used to execute PhpBench.
public testRemote ( )
    public function testRemote()
    {
        $this->launcher->payload(Argument::type('string'), [])->willReturn($this->payload->reveal());
        $this->payload->launch()->willReturn(['version' => 'success', 'xdebug' => true]);
        $info = $this->createProvider(true)->getInformation();
        $this->assertEquals('success', $info['version']);
        $this->assertTrue($info['xdebug']);
    }