Skip to content

Commit cb889b3

Browse files
committed
minor #10098 Documented the catchExceptions() method (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Documented the catchExceptions() method Fixes #8427. Commits ------- b4fd044 Documented the catchExceptions() method
2 parents 13997c7 + b4fd044 commit cb889b3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

testing.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,19 @@ will no longer be followed::
521521

522522
$client->followRedirects(false);
523523

524+
Reporting Exceptions
525+
~~~~~~~~~~~~~~~~~~~~
526+
527+
.. versionadded:: 3.4
528+
The ``catchExceptions()`` method was introduced in Symfony 3.4.
529+
530+
Debugging exceptions in functional tests may be difficult because by default
531+
they are caught and you need to look at the logs to see which exception was
532+
thrown. Disabling catching of exceptions in the test client allows the exception
533+
to be reported by PHPUnit::
534+
535+
$client->catchExceptions(false);
536+
524537
.. index::
525538
single: Tests; Crawler
526539

0 commit comments

Comments
 (0)