Skip to content

Update testing.rst #3764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 28, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions book/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a comma after Also

force him by adding false as parameter to ``followRedirects()`` method::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[...] force it [...]

and you should set false into literals as you did it with the method name

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this could also be reworded to something like

by passing ``false`` to ``followRedirects()``


$client->followRedirects(false);

.. index::
single: Tests; Crawler
Expand Down