Skip to content

Commit 2d2a1ce

Browse files
tomegantcsjaviereguiluz
authored andcommitted
[Console][Testing] Correct what appears to be intended behavior vs actual behavior in documentation
1 parent 9db76e2 commit 2d2a1ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

console.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -565,11 +565,11 @@ call ``setAutoExit(false)`` on it to get the command result in ``CommandTester``
565565

566566
.. caution::
567567

568-
When testing ``InputOption::VALUE_NONE`` command options, you must pass an
569-
empty value to them::
568+
When testing ``InputOption::VALUE_NONE`` command options, you must pass ``true``
569+
to them::
570570

571571
$commandTester = new CommandTester($command);
572-
$commandTester->execute(['--some-option' => '']);
572+
$commandTester->execute(['--some-option' => true]);
573573

574574
.. note::
575575

0 commit comments

Comments
 (0)