From 83075de8623b16856b683c29bea3916f019e83e9 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Sun, 1 Dec 2024 20:34:53 +0700 Subject: [PATCH] fix: PHPUnit option resolved_force_ip --- tests/system/HTTP/CURLRequestTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/system/HTTP/CURLRequestTest.php b/tests/system/HTTP/CURLRequestTest.php index cfd9ff91221e..18f94d78a287 100644 --- a/tests/system/HTTP/CURLRequestTest.php +++ b/tests/system/HTTP/CURLRequestTest.php @@ -1219,7 +1219,8 @@ public function testForceResolveIPUnknown(): void $options = $this->request->curl_options; - $this->assertArrayNotHasKey(CURLOPT_IPRESOLVE, $options); + $this->assertArrayHasKey(CURLOPT_IPRESOLVE, $options); + $this->assertSame(\CURL_IPRESOLVE_WHATEVER, $options[CURLOPT_IPRESOLVE]); } public function testCookieOption(): void