Skip to content

Commit 02974c2

Browse files
committed
Update testing.rst
1 parent 2b8e44d commit 02974c2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

book/testing.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,11 @@ If you want the client to automatically follow all redirects, you can
492492
force him with the ``followRedirects()`` method::
493493

494494
$client->followRedirects();
495+
496+
Also if you want to prevent the client from following any redirect, you can
497+
force him by adding false as parameter to ``followRedirects()`` method::
498+
499+
$client->followRedirects(false);
495500

496501
.. index::
497502
single: Tests; Crawler

0 commit comments

Comments
 (0)