Skip to content

Commit b9b32de

Browse files
committed
Merge branch '3.4' into 4.3
* 3.4: [Console] Mention that CommandTester doesn't dispatch console events
2 parents d6ee454 + 3e73d30 commit b9b32de

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
@@ -356,6 +356,12 @@ console::
356356
You can also test a whole console application by using
357357
:class:`Symfony\\Component\\Console\\Tester\\ApplicationTester`.
358358

359+
.. caution::
360+
361+
When testing commands using the ``CommandTester`` class, console events are
362+
not dispatched. If you need to test those events, use the
363+
:class:`Symfony\\Component\\Console\\Tester\\ApplicationTester` instead.
364+
359365
.. note::
360366

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

0 commit comments

Comments
 (0)