PhpBench\Tests\Unit\Benchmark\Remote\LauncherTest::testPassSettingsToPayload PHP Метод

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

It should pass the wrapper, ini settings and php-binary to the payload.
    public function testPassSettingsToPayload()
    {
        $launcher = new Launcher($this->factory->reveal(), $this->finder->reveal(), $bootstrap = __DIR__ . '/../../../../vendor/autoload.php', '/path/to/php', $phpConfig = ['setting_1' => 'value_1', 'setting_2' => 'value_2'], 'wrapper');
        $this->factory->create(__FILE__, ['bootstrap' => $bootstrap], '/path/to/php')->willReturn($this->payload->reveal());
        $this->payload->setWrapper('wrapper')->shouldBeCalled();
        $this->payload->setPhpConfig($phpConfig)->shouldBeCalled();
        $launcher->payload(__FILE__, []);
    }