예제 #1
0
 public function testSSlConnection()
 {
     $ftp = new Ftp("ftphost", "username", "password");
     $ftp->setFtpWrapper($this->getMockFunctions());
     $ftp->connectSSL();
     $file = $ftp->putFileFromPath(__DIR__ . '/../fixtures/foo');
     $this->assertInstanceOf('FtpLib\\File', $file);
     $file->delete();
 }