Skip to content

Commit a99a0a7

Browse files
javiereguiluzGuikingone
authored andcommitted
Documented the catchExceptions() method
1 parent 528cd78 commit a99a0a7

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
@@ -610,6 +610,19 @@ will no longer be followed::
610610

611611
$client->followRedirects(false);
612612

613+
Reporting Exceptions
614+
~~~~~~~~~~~~~~~~~~~~
615+
616+
.. versionadded:: 3.4
617+
The ``catchExceptions()`` method was introduced in Symfony 3.4.
618+
619+
Debugging exceptions in functional tests may be difficult because by default
620+
they are caught and you need to look at the logs to see which exception was
621+
thrown. Disabling catching of exceptions in the test client allows the exception
622+
to be reported by PHPUnit::
623+
624+
$client->catchExceptions(false);
625+
613626
.. index::
614627
single: Tests; Crawler
615628

0 commit comments

Comments
 (0)