Skip to content

Commit d08c737

Browse files
authored
Removed references to MockResponse::getRequestUrl
1 parent 22e5436 commit d08c737

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

http_client.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,6 @@ Testing Request Data
14711471

14721472
The ``MockResponse`` class comes with some helper methods to test the request:
14731473

1474-
* ``getRequestUrl()`` - returns the URL the request would be sent to;
14751474
* ``getRequestOptions()`` - returns an array containing other information about
14761475
the request such as headers, query parameters, body content etc.
14771476

@@ -1487,9 +1486,6 @@ Usage example::
14871486
],
14881487
]);
14891488

1490-
$mockResponse->getRequestUrl();
1491-
// returns "https://example.com/api/article/1337"
1492-
14931489
$mockResponse->getRequestOptions()['headers'];
14941490
// returns ["Accept: */*", "Authorization: Basic YWxhZGRpbjpvcGVuc2VzYW1l"]
14951491

@@ -1563,7 +1559,6 @@ test it in a real application::
15631559
$responseData = $service->createArticle($requestData);
15641560

15651561
// Assert
1566-
self::assertSame('https://example.com/api/article', $mockResponse->getRequestUrl());
15671562
self::assertContains(
15681563
'Content-Type: application/json',
15691564
$mockResponse->getRequestOptions()['headers']

0 commit comments

Comments
 (0)