/**
  * Tests kFileTransferMgr->loginPubKey()
  */
 public function testLoginPubKey()
 {
     // TODO Auto-generated kFileTransferMgrTest->testLoginPubKey()
     $this->markTestIncomplete("loginPubKey test not implemented");
     $this->kFileTransferMgr->loginPubKey();
 }
예제 #2
0
 public function loginByCredentialsType(kFileTransferMgr $fileTransferMgr)
 {
     if ($this->getSshPrivateKey() || $this->getSshPublicKey()) {
         $privKeyFile = $this->getTempFileWithContent($this->getSshPrivateKey(), 'privateKey');
         $pubKeyFile = $this->getTempFileWithContent($this->getSshPublicKey(), 'publicKey');
         return $fileTransferMgr->loginPubKey($this->getSshHost(), $this->getSshUsername(), $pubKeyFile, $privKeyFile, $this->getSshPassPhrase(), $this->getSshPort());
     } else {
         return $fileTransferMgr->login($this->getSshHost(), $this->getSshUsername(), $this->getSshPassword(), $this->getSshPort());
     }
 }