From aceba3bce861a3d1c29ffe4a515742748ea30e28 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Thu, 2 Nov 2017 13:26:01 +0100 Subject: [PATCH] Skip certificate test on PHP 7.2+ --- test/ServerTlsContextTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/ServerTlsContextTest.php b/test/ServerTlsContextTest.php index 27d6642..9528c04 100644 --- a/test/ServerTlsContextTest.php +++ b/test/ServerTlsContextTest.php @@ -212,6 +212,10 @@ public function testWithCertificatesErrorWithoutCertificateInstances() { } public function testWithCertificatesWithDifferentPathsBeforePhp72() { + if (\PHP_VERSION_ID >= 70200) { + $this->markTestSkipped("Only relevant in versions lower to PHP 7.2"); + } + $this->expectException(\Error::class); $this->expectExceptionMessage("Different files for cert and key are not supported on this version of PHP. Please upgrade to PHP 7.2 or later.");