Skip to content

Commit

Permalink
Added versionadded directive for the setInputs method
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj authored Mar 5, 2017
1 parent 9435c92 commit c09e4a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/console/helpers/questionhelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ from the command line, you need to set the inputs that the command expects::
// $this->assertRegExp('/.../', $commandTester->getDisplay());
}

.. versionadded:: 3.2
The ``CommandTester::setInputs()`` method was introduced in Symfony 3.2.

By calling :method:`Symfony\\Component\\Console\\Tester\\CommandTester::setInputs`,
you imitate what the console would do internally with all user input through the CLI.
This method takes an array as only argument with, for each input that the command expects,
Expand Down

0 comments on commit c09e4a4

Please sign in to comment.