Skip to content

Commit 4cce133

Browse files
committed
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). Discussion ---------- 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 https://github.com/symfony/symfony-docs/blob/2.4/components/console/introduction.rst#calling-an-existing-command but this could easily be missed. Commits ------- ddbadc7 Update introduction.rst
2 parents 26141d6 + bcc60af commit 4cce133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/console/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ method::
425425
$command = $application->find('demo:greet');
426426
$commandTester = new CommandTester($command);
427427
$commandTester->execute(
428-
array('command' => $command->getName(), 'name' => 'Fabien')
428+
array('command' => $command->getName(), 'name' => 'Fabien', '--iterations' => 5)
429429
);
430430

431431
$this->assertRegExp('/Fabien/', $commandTester->getDisplay());

0 commit comments

Comments
 (0)