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