/** * We work on a clone of connection and then, pass it to the depending tests */ public function testOpenSuccessful() { $connection = new Connection(getenv("FTP_HOST"), getenv("FTP_USERNAME"), getenv("FTP_PASSWORD"), getenv("FTP_PORT")); try { $connection->open(); $this->assertTrue($connection->isConnected()); return $connection; } catch (\Exception $e) { $this->markTestSkipped(); } }