Closed
Description
Q | A |
---|---|
Bug report? | no |
Feature request? | yes |
Symfony version | 3.3.7 |
I am using the following code to test interactive console application.
$input_stream = $this->getInputStream("Some user input\n");
$question_helper = new QuestionHelper();
$question_helper->setInputStream($input_stream);
$helper_set = $application->getHelperSet();
$helper_set->set($question_helper);
$tester = new ApplicationTester($application);
$tester->run($arguments);
It works well but it is not compatible with Symfony 4 because setInputStream() method has been removed.
The documentation suggests using StreamableInputInterface::setStream() but I could not find any way to set Input for ApplicationTester.
Any suggestions?