Skip to content

Commit ddbadc7

Browse files
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 1eec58b commit ddbadc7

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
@@ -460,7 +460,7 @@ method::
460460
$command = $application->find('demo:greet');
461461
$commandTester = new CommandTester($command);
462462
$commandTester->execute(
463-
array('command' => $command->getName(), 'name' => 'Fabien')
463+
array('command' => $command->getName(), 'name' => 'Fabien', '--iterations' => 5)
464464
);
465465

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

0 commit comments

Comments
 (0)