Skip to content

Commit

Permalink
Skip certificate test on PHP 7.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Nov 2, 2017
1 parent 0efa8dd commit aceba3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/ServerTlsContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.");

Expand Down

0 comments on commit aceba3b

Please sign in to comment.