diff --git a/components/console/helpers/questionhelper.rst b/components/console/helpers/questionhelper.rst index 3dc97d5c0d3..5a07d19172a 100644 --- a/components/console/helpers/questionhelper.rst +++ b/components/console/helpers/questionhelper.rst @@ -545,6 +545,14 @@ from the command line, you need to set the inputs that the command expects:: // additional input saying "yes" will work $commandTester->setInputs(['yes']); + // Answers to multiline questions need to be suffixed by + // an end-of-transmission control character + $commandTester->setInputs([<<execute(['command' => $command->getName()]); // $this->assertRegExp('/.../', $commandTester->getDisplay());