Ejemplo n.º 1
0
 public function testRemoteToRemoteFail()
 {
     $copier = new Copier($this->sourceSsh, $this->destSsh, getenv("LOCAL_TMP"));
     $sourceFile = $this->createRemoteSourceFile("blah.txt");
     $destFile = $this->getDestPath("please/let/this/file/not/exist");
     $success = $copier->copyAssoc([$sourceFile => $destFile]);
     $this->assertDestFileDoesntExist($destFile);
     $this->removeRemoteSourceFile($sourceFile);
     $this->assertFalse($success);
 }