8000 Merge branch '4.4' into 5.0 · symfony/symfony-docs@03105e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 03105e0

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: [Console] Mention that CommandTester doesn't dispatch console events
2 parents 39a2dc5 + a60a71e commit 03105e0

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

370+
.. caution::
371+
372+
When testing commands using the ``CommandTester`` class, console events are
373+
not dispatched. If you need to test those events, use the
374+
:class:`Symfony\\Component\\Console\\Tester\\ApplicationTester` instead.
375+
370376
.. note::
371377

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

0 commit comments

Comments
 (0)
0