Browse files

minor #4057 Update introduction.rst (carltondickson)

This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes #4057).


Update introduction.rst

In my opinion a note or example needs to be added to the command test example to show that the option name needs to be prefixed with a double hyphen.

Admittedly there is a similar example of passing an option to a command at but this could easily be missed.


ddbadc7 Update introduction.rst
  • Loading branch information...
weaverryan committed Aug 15, 2014
2 parents 26141d6 + bcc60af commit 4cce133b5b55fce7cafa26257e530838f587a814
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/console/introduction.rst
@@ -425,7 +425,7 @@ method::
$command = $application->find('demo:greet');
$commandTester = new CommandTester($command);
array('command' => $command->getName(), 'name' => 'Fabien')
array('command' => $command->getName(), 'name' => 'Fabien', '--iterations' => 5)
$this->assertRegExp('/Fabien/', $commandTester->getDisplay());

0 comments on commit 4cce133

Please sign in to comment.