Skip to content

Commit 89b51b1

Browse files
committed
tests: unknown value in option force_ip_resolve
1 parent ec2cc6e commit 89b51b1

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
@@ -1211,6 +1211,17 @@ public function testForceResolveIPv6(): void
12111211
$this->assertSame(CURL_IPRESOLVE_V6, $options[CURLOPT_IPRESOLVE]);
12121212
}
12131213

1214+
public function testForceResolveIPUnknown(): void
1215+
{
1216+
$this->request->request('POST', '/post', [
1217+
'force_ip_resolve' => 'v?',
1218+
]);
1219+
1220+
$options = $this->request->curl_options;
1221+
1222+
$this->assertArrayNotHasKey(CURLOPT_IPRESOLVE, $options);
1223+
}
1224+
12141225
public function testCookieOption(): void
12151226
{
12161227
$holder = SUPPORTPATH . 'HTTP/Files/CookiesHolder.txt';

0 commit comments

Comments
 (0)