From c070711ef3dbffd766eff55d85807966d07c0887 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 10 Dec 2019 13:37:17 +0100 Subject: [PATCH] [Console] Mention that CommandTester doesn't dispatch console events --- console.rst | 6 ++++++ 1 file changed, 6 insertions(+) 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