Skip to content

Commit 198690e

Browse files
committed
Improve test suite to exclude TLS 1.3 tests on PHP 7.3
Explicit TLS 1.3 support will be available in PHP 7.4: php/php-src#3909 Older PHP versions implicitly support TLS 1.3 provided that the underlying OpenSSL version supports TLS 1.3. However, for PHP 7.3 some recent changes implicitly disable TLS 1.3, so we skip TLS 1.3 tests on affected PHP versions: php/php-src#3317
1 parent 529a5f8 commit 198690e

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy