From b6a6f7a5b49ced95eb130859e1f3680bbb605166 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Tue, 24 Sep 2024 17:47:25 +0700 Subject: [PATCH] tests: unknown value in option force_ip_resolve --- tests/system/HTTP/CURLRequestTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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';