/** * @param string $name */ private function iExecuteCommandAndConfirm($name) { $this->dialog = $this->command->getHelper('dialog'); $inputString = 'y' . PHP_EOL; $this->dialog->setInputStream($this->getInputStream($inputString)); $this->tester->execute(['command' => $name]); }
/** * @param string $name */ private function iExecuteCommandAndConfirm($name) { $this->questionHelper = $this->command->getHelper('question'); $inputString = 'y' . PHP_EOL; $this->questionHelper->setInputStream($this->getInputStream($inputString)); try { $this->tester->execute(['command' => $name]); } catch (\Exception $e) { } }