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 1ff60fd commit b28603eCopy full SHA for b28603e
console.rst
@@ -393,6 +393,16 @@ console::
393
not dispatched. If you need to test those events, use the
394
:class:`Symfony\\Component\\Console\\Tester\\ApplicationTester` instead.
395
396
+.. caution::
397
+
398
+ When testing commands using the :class:`Symfony\\Component\\Console\\Tester\\ApplicationTester`
399
+ class, don't forget to disable the auto exit flag::
400
401
+ $application = new Application();
402
+ $application->setAutoExit(false);
403
404
+ $tester = new ApplicationTester($application);
405
406
.. note::
407
408
When using the Console component in a standalone project, use
0 commit comments