@@ -193,7 +193,7 @@ public static function provideCurlRequests(): iterable
193
193
--url %1$shttp://localhost:8057/json%1$s \\
194
194
--header %1$sAccept: */*%1$s \\
195
195
--header %1$sAccept-Encoding: gzip%1$s \\
196
- --header %1$sUser-Agent: SymfonyHttpClient (Native)%1$s ' ,
196
+ --header %1$sUser-Agent: Symfony HttpClient (Native)%1$s ' ,
197
197
];
198
198
yield 'GET with base uri ' => [
199
199
[
@@ -209,7 +209,7 @@ public static function provideCurlRequests(): iterable
209
209
--url %1$shttp://localhost:8057/json/1%1$s \\
210
210
--header %1$sAccept: */*%1$s \\
211
211
--header %1$sAccept-Encoding: gzip%1$s \\
212
- --header %1$sUser-Agent: SymfonyHttpClient (Native)%1$s ' ,
212
+ --header %1$sUser-Agent: Symfony HttpClient (Native)%1$s ' ,
213
213
];
214
214
yield 'GET with resolve ' => [
215
215
[
@@ -229,7 +229,7 @@ public static function provideCurlRequests(): iterable
229
229
--url %1$shttp://localhost:8057/json%1$s \\
230
230
--header %1$sAccept: */*%1$s \\
231
231
--header %1$sAccept-Encoding: gzip%1$s \\
232
- --header %1$sUser-Agent: SymfonyHttpClient (Native)%1$s ' ,
232
+ --header %1$sUser-Agent: Symfony HttpClient (Native)%1$s ' ,
233
233
];
234
234
yield 'POST with string body ' => [
235
235
[
@@ -247,7 +247,7 @@ public static function provideCurlRequests(): iterable
247
247
--header %1$sContent-Length: 9%1$s \\
248
248
--header %1$sContent-Type: application/x-www-form-urlencoded%1$s \\
249
249
--header %1$sAccept-Encoding: gzip%1$s \\
250
- --header %1$sUser-Agent: SymfonyHttpClient (Native)%1$s \\
250
+ --header %1$sUser-Agent: Symfony HttpClient (Native)%1$s \\
251
251
--data %1$sfoobarbaz%1$s ' ,
252
252
];
253
253
yield 'POST with array body ' => [
@@ -285,7 +285,7 @@ public function __toString(): string
285
285
--header %1$sContent-Type: application/x-www-form-urlencoded%1$s \\
286
286
--header %1$sContent-Length: 211%1$s \\
287
287
--header %1$sAccept-Encoding: gzip%1$s \\
288
- --header %1$sUser-Agent: SymfonyHttpClient (Native)%1$s \\
288
+ --header %1$sUser-Agent: Symfony HttpClient (Native)%1$s \\
289
289
--data %1$sfoo=fooval%1$s --data %1$sbar=barval%1$s --data %1$sbaz=bazval%1$s --data %1$sfoobar[baz]=bazval%1$s --data %1$sfoobar[qux]=quxval%1$s --data %1$sbazqux[0]=bazquxval1%1$s --data %1$sbazqux[1]=bazquxval2%1$s --data %1$sobject[fooprop]=foopropval%1$s --data %1$sobject[barprop]=barpropval%1$s --data %1$stostring=tostringval%1$s ' ,
290
290
];
291
291
@@ -312,7 +312,7 @@ public function __toString(): string
312
312
--url %1$shttp://localhost:8057/?foo=fooval&bar=newbarval&foobar[baz]=bazval&foobar[qux]=quxval&bazqux[0]=bazquxval1&bazqux[1]=bazquxval2%1$s \\
313
313
--header %1$sAccept: */*%1$s \\
314
314
--header %1$sAccept-Encoding: gzip%1$s \\
315
- --header %1$sUser-Agent: SymfonyHttpClient (Native)%1$s ' ,
315
+ --header %1$sUser-Agent: Symfony HttpClient (Native)%1$s ' ,
316
316
];
317
317
yield 'POST with json ' => [
318
318
[
@@ -336,7 +336,7 @@ public function __toString(): string
336
336
--header %1$sAccept: */*%1$s \\
337
337
--header %1$sContent-Length: 120%1$s \\
338
338
--header %1$sAccept-Encoding: gzip%1$s \\
339
- --header %1$sUser-Agent: SymfonyHttpClient (Native)%1$s \\
339
+ --header %1$sUser-Agent: Symfony HttpClient (Native)%1$s \\
340
340
--data %1$s{"foo":{"bar":"baz","qux":[1.1,1.0],"fred":["\u003Cfoo\u003E","\u0027bar\u0027","\u0022baz\u0022","\u0026blong\u0026"]}}%1$s ' ,
341
341
];
342
342
}
@@ -368,7 +368,7 @@ public function testItDoesNotFollowRedirectionsWhenGeneratingCurlCommands()
368
368
--header %1$sAccept: */*%1$s \\
369
369
--header %1$sAuthorization: Basic Zm9vOmJhcg==%1$s \\
370
370
--header %1$sAccept-Encoding: gzip%1$s \\
371
- --header %1$sUser-Agent: SymfonyHttpClient (Native)%1$s ' , '\\' === \DIRECTORY_SEPARATOR ? '" ' : "' " ), $ curlCommand
371
+ --header %1$sUser-Agent: Symfony HttpClient (Native)%1$s ' , '\\' === \DIRECTORY_SEPARATOR ? '" ' : "' " ), $ curlCommand
372
372
);
373
373
}
374
374
0 commit comments