diff --git a/console.rst b/console.rst index acb2074aebf..fd19c1a3205 100644 --- a/console.rst +++ b/console.rst @@ -543,11 +543,11 @@ call ``setAutoExit(false)`` on it to get the command result in ``CommandTester`` .. caution:: - When testing ``InputOption::VALUE_NONE`` command options, you must pass an - empty value to them:: + When testing ``InputOption::VALUE_NONE`` command options, you must pass ``true`` + to them:: $commandTester = new CommandTester($command); - $commandTester->execute(['--some-option' => '']); + $commandTester->execute(['--some-option' => true]); .. note::