protected function setExpectedCommandInput(Command $command, $input) { if (is_array($input)) { $input = implode("\n", $input); } $helper = $command->getHelper('gush_question'); $helper->setInputStream($this->getInputStream($input)); }