From c838edc064777ed9afa46d6ff2aec1ee3031a21b Mon Sep 17 00:00:00 2001 From: Paul Rock Date: Wed, 1 Jul 2020 22:37:25 +0300 Subject: [PATCH] skip state if openssl extention is not available added to ClientTest of export methods --- tests/ClientTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/ClientTest.php b/tests/ClientTest.php index cc36d16..c2e032c 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -274,12 +274,20 @@ class ClientTest extends TestCase public function testExportMethod(): void { + if (!extension_loaded('openssl')) { + $this->markTestSkipped('The OpenSSL extension is not available.'); + } + $result = $this->client->export(); $this->assertNotEmpty($result); } public function testExportQuery(): void { + if (!extension_loaded('openssl')) { + $this->markTestSkipped('The OpenSSL extension is not available.'); + } + $result = $this->client->query('/export'); $this->assertNotEmpty($result); }