Liuggio\Fastest\Process\ProcessFactoryTest::shouldReplaceThePlaceholder PHP Method

shouldReplaceThePlaceholder() public method

    public function shouldReplaceThePlaceholder()
    {
        $factory = new ProcessFactory(12, 'execute {p} {} {n}');
        $process = $factory->createAProcess('fileA', 1, 13, true);
        $this->assertEquals('execute 1 fileA 13', $process->getCommandLine());
        $this->assertEquals($_ENV + array(0 => 'ENV_TEST_CHANNEL=1', 1 => 'ENV_TEST_CHANNEL_READABLE=test_1', 2 => 'ENV_TEST_CHANNELS_NUMBER=12', 3 => 'ENV_TEST_ARGUMENT=fileA', 4 => 'ENV_TEST_INC_NUMBER=13', 5 => 'ENV_TEST_IS_FIRST_ON_CHANNEL=1', 6 => 'PATH=' . getenv('PATH')), $process->getenv());
    }