8000 Merge branch '5.4' into 6.0 · mpiot/symfony-docs@7834713 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7834713

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [HttpClient] Update http client testing section
2 parents 7ac5483 + 2431126 commit 7834713

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

http_client.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,6 +1800,11 @@ The ``MockResponse`` class comes with some helper methods to test the request:
18001800
* ``getRequestOptions()`` - returns an array containing other information about
18011801
the request such as headers, query parameters, body content etc.
18021802

1803+
.. versionadded:: 5.2
1804+
1805+
The ``getRequestMethod()`` and ``getRequestUrl()`` methods were introduced
1806+
in Symfony 5.2.
1807+
18031808
Usage example::
18041809

18051810
$mockResponse = new MockResponse('', ['http_code' => 204]);

0 commit comments

Comments
 (0)
0