From 02974c2d9827f1e8280b4223cf204a823d01f6b7 Mon Sep 17 00:00:00 2001 From: Ala Eddine khefifi Date: Fri, 4 Apr 2014 18:11:20 +0200 Subject: [PATCH 1/3] Update testing.rst --- book/testing.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/book/testing.rst b/book/testing.rst index 4d1a635d08f..9f26f024e03 100644 --- a/book/testing.rst +++ b/book/testing.rst @@ -492,6 +492,11 @@ If you want the client to automatically follow all redirects, you can force him with the ``followRedirects()`` method:: $client->followRedirects(); + +Also if you want to prevent the client from following any redirect, you can +force him by adding false as parameter to ``followRedirects()`` method:: + + $client->followRedirects(false); .. index:: single: Tests; Crawler From 9878be675023e5308b50bfad697c79f365b2f850 Mon Sep 17 00:00:00 2001 From: Ala Eddine khefifi Date: Fri, 4 Apr 2014 22:04:54 +0200 Subject: [PATCH 2/3] Update testing.rst --- book/testing.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/book/testing.rst b/book/testing.rst index 9f26f024e03..0368e180275 100644 --- a/book/testing.rst +++ b/book/testing.rst @@ -492,9 +492,9 @@ If you want the client to automatically follow all redirects, you can force him with the ``followRedirects()`` method:: $client->followRedirects(); - -Also if you want to prevent the client from following any redirect, you can -force him by adding false as parameter to ``followRedirects()`` method:: + +Also, if you want to prevent the client from following any redirect, you can +force him by passing ``false`` to ``followRedirects()`` method:: $client->followRedirects(false); From 804b686f795d231c9a7a01fbf852e08e246c2671 Mon Sep 17 00:00:00 2001 From: Ala Eddine Khefifi Date: Wed, 21 May 2014 12:56:52 +0200 Subject: [PATCH 3/3] Update testing.rst --- book/testing.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/book/testing.rst b/book/testing.rst index 0368e180275..7fc2c1e2ac1 100644 --- a/book/testing.rst +++ b/book/testing.rst @@ -492,9 +492,9 @@ If you want the client to automatically follow all redirects, you can force him with the ``followRedirects()`` method:: $client->followRedirects(); - -Also, if you want to prevent the client from following any redirect, you can -force him by passing ``false`` to ``followRedirects()`` method:: + +If you pass ``false`` to the ``followRedirects()`` method, the redirects +will no longer be followed:: $client->followRedirects(false);