public function testClient()
 {
     $client = new Client($this->getOptions());
     $client->connect();
     $client->cd('pub');
     $client->put(__DIR__ . '/Resources/dummy.gif');
     $contents = $client->ls();
     $this->assertContains("dummy.gif", $contents);
     $client->rm("dummy.gif");
     $contents = $client->ls();
     $this->assertEquals(null, $contents);
 }
Example #2
0
 public function testConnect()
 {
     $ftp = new Client($this->getOptions(), $this->getAdapter());
     $this->assertEquals($ftp->connect(), true);
 }