diff --git a/console.rst b/console.rst index 2dadcbb5daf..ad00db815a2 100644 --- a/console.rst +++ b/console.rst @@ -306,6 +306,12 @@ console:: You can also test a whole console application by using :class:`Symfony\\Component\\Console\\Tester\\ApplicationTester`. +.. caution:: + + When testing commands using the ``CommandTester`` class, console events are + not dispatched. If you need to test those events, use the + :class:`Symfony\\Component\\Console\\Tester\\ApplicationTester` instead. + .. note:: When using the Console component in a standalone project, use