$syntaxErrorOutputVerbose.
$errorMessage.\PHP_EOL, 'php -r "fwrite(STDERR, \'error message\');usleep(50000);fwrite(STDOUT, \'out message\');exit(252);"', StreamOutput::VERBOSITY_VERY_VERBOSE,
$errorMessage],
[$syntaxErrorOutputDebug.
$errorMessage.\PHP_EOL, 'php -r "fwrite(STDERR, \'error message\');usleep(500000);fwrite(STDOUT, \'out message\');exit(252);"', StreamOutput::VERBOSITY_DEBUG,
$errorMessage],
[$successOutputProcessDebug,
['php', '-r', 'echo 42;'
], StreamOutput::VERBOSITY_DEBUG, null
],
[$successOutputDebug, Process::
fromShellCommandline('php -r "echo 42;"'
), StreamOutput::VERBOSITY_DEBUG, null
],
[$successOutputProcessDebug,
[new Process(['php', '-r', 'echo 42;'
])], StreamOutput::VERBOSITY_DEBUG, null
],
[$successOutputPhp,
[Process::
fromShellCommandline('php -r '.
$PHP), 'PHP' => 'echo 42;'
], StreamOutput::VERBOSITY_DEBUG, null
],
];
} private function getOutputStream($verbosity): StreamOutput
{ return new StreamOutput(fopen('php://memory', 'r+', false
),
$verbosity, false
);
} private function getOutput(StreamOutput
$output): string
{ rewind($output->
getStream());
return stream_get_contents($output->
getStream());
}}