Skip to content

Commit

Permalink
tests: unknown value in option force_ip_resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevsr committed Sep 24, 2024
1 parent 73bf5e1 commit b6a6f7a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/system/HTTP/CURLRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit b6a6f7a

Please sign in to comment.