From c09e4a4aba9855bdc2a80f3266d63b4921f99c04 Mon Sep 17 00:00:00 2001 From: Wouter J Date: Sun, 5 Mar 2017 13:05:57 +0100 Subject: [PATCH] Added versionadded directive for the setInputs method --- components/console/helpers/questionhelper.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/console/helpers/questionhelper.rst b/components/console/helpers/questionhelper.rst index 35c486d37a5..33ac48a3601 100644 --- a/components/console/helpers/questionhelper.rst +++ b/components/console/helpers/questionhelper.rst @@ -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,