From 71f5bf7bf5e6f9c3f3c3ff011a18793094f81f25 Mon Sep 17 00:00:00 2001 From: Paul Rock Date: Wed, 1 Jul 2020 22:56:42 +0300 Subject: [PATCH] travis does not allow to use ssh on testing stage --- tests/ClientTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ClientTest.php b/tests/ClientTest.php index c2e032c..3841efd 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -274,8 +274,8 @@ class ClientTest extends TestCase public function testExportMethod(): void { - if (!extension_loaded('openssl')) { - $this->markTestSkipped('The OpenSSL extension is not available.'); + if (!in_array(gethostname(), ['pasha-lt', 'pasha-pc'])) { + $this->markTestSkipped('Travis does not allow to use SSH protocol on testing stage'); } $result = $this->client->export(); @@ -284,8 +284,8 @@ class ClientTest extends TestCase public function testExportQuery(): void { - if (!extension_loaded('openssl')) { - $this->markTestSkipped('The OpenSSL extension is not available.'); + if (!in_array(gethostname(), ['pasha-lt', 'pasha-pc'])) { + $this->markTestSkipped('Travis does not allow to use SSH protocol on testing stage'); } $result = $this->client->query('/export');