12 namespace Symfony\Component\Console\Tester;
61 public function run(array
$input, $options = array())
64 if (isset($options[
'interactive'])) {
65 $this->input->setInteractive($options[
'interactive']);
68 $this->output =
new StreamOutput(fopen(
'php://memory',
'w',
false));
69 if (isset($options[
'decorated'])) {
70 $this->output->setDecorated($options[
'decorated']);
72 if (isset($options[
'verbosity'])) {
73 $this->output->setVerbosity($options[
'verbosity']);
76 return $this->statusCode = $this->application->run($this->input, $this->output);
88 rewind($this->output->getStream());
90 $display = stream_get_contents($this->output->getStream());
93 $display = str_replace(PHP_EOL,
"\n", $display);