diff --git a/tests/system/HTTP/CURLRequestTest.php b/tests/system/HTTP/CURLRequestTest.php index d39c48864d6a..1a8e5657a33c 100644 --- a/tests/system/HTTP/CURLRequestTest.php +++ b/tests/system/HTTP/CURLRequestTest.php @@ -1196,6 +1196,17 @@ public function testForceResolveIPv6(): void $this->assertSame(CURL_IPRESOLVE_V6, $options[CURLOPT_IPRESOLVE]); } + public function testForceResolveIPUnknown(): void + { + $this->request->request('POST', '/post', [ + 'force_ip_resolve' => 'v?', + ]); + + $options = $this->request->curl_options; + + $this->assertArrayNotHasKey(CURLOPT_IPRESOLVE, $options); + } + public function testCookieOption(): void { $holder = SUPPORTPATH . 'HTTP/Files/CookiesHolder.txt';