12 namespace Symfony\Component\Console\Tester;
60 if (!isset($input[
'command'])
61 && (null !== $application = $this->command->getApplication())
62 && $application->getDefinition()->hasArgument(
'command')
64 $input = array_merge(array(
'command' => $this->command->getName()), $input);
68 if (isset($options[
'interactive'])) {
69 $this->input->setInteractive($options[
'interactive']);
72 $this->output =
new StreamOutput(fopen(
'php://memory',
'w',
false));
73 if (isset($options[
'decorated'])) {
74 $this->output->setDecorated($options[
'decorated']);
76 if (isset($options[
'verbosity'])) {
77 $this->output->setVerbosity($options[
'verbosity']);
80 return $this->statusCode = $this->command->run($this->input, $this->output);
92 rewind($this->output->getStream());
94 $display = stream_get_contents($this->output->getStream());
97 $display = str_replace(PHP_EOL,
"\n", $display);