Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dcc57b1

Browse filesBrowse files
committed
Merge pull request symfony#1257 from Sgoettschkes/2.0
Fixing description of default behaviour of testclient on redirects, see symfony#1254
2 parents 6892e96 + 0fef91e commit dcc57b1
Copy full SHA for dcc57b1

File tree

Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed

‎book/testing.rst

Copy file name to clipboardExpand all lines: book/testing.rst
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -429,16 +429,16 @@ For specific details on using the profiler inside a test, see the
429429
Redirecting
430430
~~~~~~~~~~~
431431

432-
When a request returns a redirect response, the client automatically follows
433-
it. If you want to examine the Response before redirecting, you can force
434-
the client to not follow redirects with the ``followRedirects()`` method::
435-
436-
$client->followRedirects(false);
437-
438-
When the client does not follow redirects, you can force the redirection with
439-
the ``followRedirect()`` method::
432+
When a request returns a redirect response, the client does not follow
433+
it automatically. You can examine the response and force a redirection
434+
afterwards with the ``followRedirect()`` method::
440435

441436
$crawler = $client->followRedirect();
437+
438+
If you want the client to automatically follow all redirects, you can
439+
force him with the ``followRedirects()`` method::
440+
441+
$client->followRedirects();
442442

443443
.. index::
444444
single: Tests; Crawler

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.