@@ -1149,12 +1149,13 @@ HttpClient Assertions
1149
1149
1150
1150
.. tip ::
1151
1151
1152
- For all following assertions, ``$client->enableProfiler() `` must be called before the code that will trigger HTTP request(s).
1152
+ For all the following assertions, ``$client->enableProfiler() `` must be
1153
+ called before the code that will trigger HTTP request(s).
1153
1154
1154
1155
``assertHttpClientRequest(string $expectedUrl, string $expectedMethod = 'GET', string|array $expectedBody = null, array $expectedHeaders = [], string $httpClientId = 'http_client') ``
1155
- Asserts that the given URL has been called using, is specified,
1156
+ Asserts that the given URL has been called using, if specified,
1156
1157
the given method body and headers. By default it will check on the HttpClient,
1157
- but a HttpClient id can be specified .
1158
+ but you can also pass a specific HttpClient ID .
1158
1159
(It will succeed if the request has been called multiple times.)
1159
1160
1160
1161
``assertNotHttpClientRequest(string $unexpectedUrl, string $expectedMethod = 'GET', string $httpClientId = 'http_client') ``
@@ -1163,7 +1164,8 @@ HttpClient Assertions
1163
1164
1164
1165
``assertHttpClientRequestCount(int $count, string $httpClientId = 'http_client') ``
1165
1166
Asserts that the given number of requests has been made on the HttpClient.
1166
- By default it will check on the HttpClient, but a HttpClient id can be specified.
1167
+ By default it will check on the HttpClient, but you can also pass a specific
1168
+ HttpClient ID.
1167
1169
1168
1170
.. versionadded :: 6.4
1169
1171
0 commit comments