public function test_ftp_local_connection_file_write_fails_on_bad_report() { if (($user = getenv('FTP_USER')) && ($pass = getenv('FTP_PASSWORD')) && ($host = getenv('FTP_HOST'))) { $ftp = new Adapter\Ftp($host, $user, $pass, 'httpdocs/scan.yml'); $result = $ftp->read(); /** @noinspection PhpParamsInspection */ $this->assertFalse($result); unset($ftp); } }