We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f72b56 commit 26a7fabCopy full SHA for 26a7fab
console.rst
@@ -546,6 +546,15 @@ call ``setAutoExit(false)`` on it to get the command result in ``CommandTester``
546
$application->setAutoExit(false);
547
548
$tester = new ApplicationTester($application);
549
+
550
551
+.. caution::
552
553
+ When testing ``InputOption::VALUE_NONE`` command option, be sure to pass an empty
554
+ value like so::
555
556
+ $commandTester = new CommandTester($command);
557
+ $commandTester->execute(['--some-option' => '']);
558
559
.. note::
560
0 commit comments