Neos\Flow\Tests\Behavior\Features\Bootstrap\IsolatedBehatStepsTrait::callStepInSubProcess PHP Метод

callStepInSubProcess() защищенный Метод

protected callStepInSubProcess ( $stepMethodName, $encodedStepArguments = '', $withoutSecurityChecks = false )
$stepMethodName string
$encodedStepArguments string
    protected function callStepInSubProcess($stepMethodName, $encodedStepArguments = '', $withoutSecurityChecks = false)
    {
        if (strpos($stepMethodName, '::') !== 0) {
            $stepMethodName = substr($stepMethodName, strpos($stepMethodName, '::') + 2);
        }
        $withoutSecurityChecks = $withoutSecurityChecks === true ? '--without-security-checks ' : '';
        $subProcessCommand = sprintf('neos.flow.tests.functional:behathelper:callbehatstep %s%s %s%s', $withoutSecurityChecks, escapeshellarg($this->behatTestHelperObjectName), $stepMethodName, $encodedStepArguments);
        $subProcessResponse = $this->getSubProcess()->execute($subProcessCommand);
        Assert::assertStringStartsWith('SUCCESS:', $subProcessResponse, 'We called "' . $subProcessCommand . '" and got: ' . $subProcessResponse);
    }