Skip to content

Commit 484c311

Browse files
committed
test: dynamiclly constant
1 parent 052520f commit 484c311

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/system/HTTP/CURLRequestTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,10 @@ public function testHTTPv3(): void
11641164

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

1167+
if (! defined('CURL_HTTP_VERSION_3')) {
1168+
define('CURL_HTTP_VERSION_3', 30);
1169+
}
1170+
11671171
$this->assertArrayHasKey(CURLOPT_HTTP_VERSION, $options);
11681172
$this->assertSame(CURL_HTTP_VERSION_3, $options[CURLOPT_HTTP_VERSION]);
11691173
}

0 commit comments

Comments
 (0)