Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3e73d30

Browse filesBrowse files
committed
minor #12797 [Console] Mention that CommandTester doesn't dispatch console events (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- [Console] Mention that CommandTester doesn't dispatch console events Fixes #11828. Commits ------- c070711 [Console] Mention that CommandTester doesn't dispatch console events
2 parents 077ab13 + c070711 commit 3e73d30
Copy full SHA for 3e73d30

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed

‎console.rst

Copy file name to clipboardExpand all lines: console.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,12 @@ console::
306306
You can also test a whole console application by using
307307
:class:`Symfony\\Component\\Console\\Tester\\ApplicationTester`.
308308

309+
.. caution::
310+
311+
When testing commands using the ``CommandTester`` class, console events are
312+
not dispatched. If you need to test those events, use the
313+
:class:`Symfony\\Component\\Console\\Tester\\ApplicationTester` instead.
314+
309315
.. note::
310316

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.