Skip to content

Commit b4fd044

Browse files
committed
Documented the catchExceptions() method
1 parent 26493f3 commit b4fd044

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)