From ddbadc7d263f646dfc9f6346f834483614b42f8f Mon Sep 17 00:00:00 2001 From: Carlton Date: Fri, 25 Jul 2014 11:46:21 +0100 Subject: [PATCH] Update introduction.rst In my opinion a note or example needs to be added to the command test example to show that the option needs to be prefixed with a double hyphen. --- components/console/introduction.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/console/introduction.rst b/components/console/introduction.rst index 0f68f44ea81..52d9bc90490 100644 --- a/components/console/introduction.rst +++ b/components/console/introduction.rst @@ -460,7 +460,7 @@ method:: $command = $application->find('demo:greet'); $commandTester = new CommandTester($command); $commandTester->execute( - array('command' => $command->getName(), 'name' => 'Fabien') + array('command' => $command->getName(), 'name' => 'Fabien', '--iterations' => 5) ); $this->assertRegExp('/Fabien/', $commandTester->getDisplay());