Skip to content

Commit bcc60af

Browse files
carltondicksonweaverryan
authored andcommitted
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.
1 parent 26141d6 commit bcc60af

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)