Skip to content

Commit 420e02b

Browse files
authored
Merge pull request #217 from clue-labs/php7.3-excludes-tls1.3
Improve test suite to exclude TLS 1.3 tests on PHP 7.3
2 parents 529a5f8 + 198690e commit 420e02b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/FunctionalSecureServerTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@ public function testClientCanConnectToServer()
5050

5151
public function testClientUsesTls13ByDefaultWhenSupportedByOpenSSL()
5252
{
53-
if (PHP_VERSION_ID < 70000 || !$this->supportsTls13()) {
54-
$this->markTestSkipped('Test requires PHP 7+ for crypto meta data and OpenSSL 1.1.1+ for TLS 1.3');
53+
if (PHP_VERSION_ID < 70000 || (PHP_VERSION_ID >= 70300 && PHP_VERSION_ID < 70400) || !$this->supportsTls13()) {
54+
// @link https://github.com/php/php-src/pull/3909 explicitly adds TLS 1.3 on PHP 7.4
55+
// @link https://github.com/php/php-src/pull/3317 implicitly limits to TLS 1.2 on PHP 7.3
56+
// all older PHP versions support TLS 1.3 (provided OpenSSL supports it), but only PHP 7 allows checking the version
57+
$this->markTestSkipped('Test requires PHP 7+ for crypto meta data (but excludes PHP 7.3 because it implicitly limits to TLS 1.2) and OpenSSL 1.1.1+ for TLS 1.3');
5558
}
5659

5760
$loop = Factory::create();

0 commit comments

Comments
 (0)