Symfony\Installer\Tests\IntegrationTest::runCommand PHP Метод

runCommand() приватный Метод

The CWD is set to the root project directory to simplify command paths.
private runCommand ( string $command, null | string $workingDirectory = null ) : string
$command string The name of the command to execute
$workingDirectory null | string The working directory
Результат string The output of the command
    private function runCommand($command, $workingDirectory = null)
    {
        $process = new Process($command);
        $process->setWorkingDirectory($workingDirectory ?: $this->rootDir);
        $process->mustRun();
        return $process->getOutput();
    }