Skip to content

Commit b02bdf7

Browse files
committed
tests: unknown value in option force_ip_resolve
1 parent 713249b commit b02bdf7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/system/HTTP/CURLRequestTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,17 @@ public function testForceResolveIPv6(): void
11961196
$this->assertSame(CURL_IPRESOLVE_V6, $options[CURLOPT_IPRESOLVE]);
11971197
}
11981198

1199+
public function testForceResolveIPUnknown(): void
1200+
{
1201+
$this->request->request('POST', '/post', [
1202+
'force_ip_resolve' => 'v?',
1203+
]);
1204+
1205+
$options = $this->request->curl_options;
1206+
1207+
$this->assertArrayNotHasKey(CURLOPT_IPRESOLVE, $options);
1208+
}
1209+
11991210
public function testCookieOption(): void
12001211
{
12011212
$holder = SUPPORTPATH . 'HTTP/Files/CookiesHolder.txt';

0 commit comments

Comments
 (0)