Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions components/console/helpers/questionhelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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([<<<INPUT
First line
Second line
\x04
INPUT]);

$commandTester->execute(['command' => $command->getName()]);

// $this->assertRegExp('/.../', $commandTester->getDisplay());
Expand Down