Skip to content

Commit

Permalink
test: dynamiclly constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevsr committed Sep 10, 2024
1 parent 07ea4a5 commit 0b75ea7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/system/HTTP/CURLRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,10 @@ public function testHTTPv3(): void

$options = $this->request->curl_options;

if (! defined('CURL_HTTP_VERSION_3')) {
define('CURL_HTTP_VERSION_3', 30);
}

$this->assertArrayHasKey(CURLOPT_HTTP_VERSION, $options);
$this->assertSame(CURL_HTTP_VERSION_3, $options[CURLOPT_HTTP_VERSION]);
}
Expand Down

0 comments on commit 0b75ea7

Please sign in to comment.