Skip to content

Commit a60a71e

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: [Console] Mention that CommandTester doesn't dispatch console events
2 parents 4407c46 + b9b32de commit a60a71e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

console.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,12 @@ console::
372372
You can also test a whole console application by using
373373
:class:`Symfony\\Component\\Console\\Tester\\ApplicationTester`.
374374

375+
.. caution::
376+
377+
When testing commands using the ``CommandTester`` class, console events are
378+
not dispatched. If you need to test those events, use the
379+
:class:`Symfony\\Component\\Console\\Tester\\ApplicationTester` instead.
380+
375381
.. note::
376382

377383
When using the Console component in a standalone project, use

0 commit comments

Comments
 (0)