File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -1172,6 +1172,30 @@ public function testHTTPv3(): void
1172
1172
$ this ->assertSame (CURL_HTTP_VERSION_3 , $ options [CURLOPT_HTTP_VERSION ]);
1173
1173
}
1174
1174
1175
+ public function testForceResolveIPv4 (): void
1176
+ {
1177
+ $ this ->request ->request ('POST ' , '/post ' , [
1178
+ 'force_ip_resolve ' => 'v4 ' ,
1179
+ ]);
1180
+
1181
+ $ options = $ this ->request ->curl_options ;
1182
+
1183
+ $ this ->assertArrayHasKey (CURLOPT_IPRESOLVE , $ options );
1184
+ $ this ->assertSame (CURL_IPRESOLVE_V4 , $ options [CURLOPT_IPRESOLVE ]);
1185
+ }
1186
+
1187
+ public function testForceResolveIPv6 (): void
1188
+ {
1189
+ $ this ->request ->request ('POST ' , '/post ' , [
1190
+ 'force_ip_resolve ' => 'v6 ' ,
1191
+ ]);
1192
+
1193
+ $ options = $ this ->request ->curl_options ;
1194
+
1195
+ $ this ->assertArrayHasKey (CURLOPT_IPRESOLVE , $ options );
1196
+ $ this ->assertSame (CURL_IPRESOLVE_V6 , $ options [CURLOPT_IPRESOLVE ]);
1197
+ }
1198
+
1175
1199
public function testCookieOption (): void
1176
1200
{
1177
1201
$ holder = SUPPORTPATH . 'HTTP/Files/CookiesHolder.txt ' ;
You can’t perform that action at this time.
0 commit comments