From 76d5d8348b65529d4a1d8fc5b9c3363c3fc8a586 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 19 Nov 2019 18:06:02 +0100 Subject: [PATCH] Update DirectoryTest.php --- tests/System/File/Ftp/DirectoryTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/System/File/Ftp/DirectoryTest.php b/tests/System/File/Ftp/DirectoryTest.php index d6e1aa29f..87b226e0b 100644 --- a/tests/System/File/Ftp/DirectoryTest.php +++ b/tests/System/File/Ftp/DirectoryTest.php @@ -31,6 +31,12 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase if ($this->con === null) { $this->con = Directory::ftpConnect(new Http(self::BASE)); } + + if ($this->con === false) { + $this->markTestSkipped( + 'The ftp connection is not available.' + ); + } } public function testStatic() : void