Codeception\Module\WPCLI::buildCommand PHP Method

buildCommand() protected method

protected buildCommand ( $userCommand ) : string
$userCommand
return string
    protected function buildCommand($userCommand)
    {
        $mergedCommand = $this->mergeCommandOptions($userCommand);
        $command = implode(' ', [PHP_BINARY, $this->bootPath, $mergedCommand]);
        return $command;
    }