Properly skip SFTPLargeFileTest when environment variables not defined.

This commit is contained in:
Andreas Fischer 2014-12-12 19:38:04 +01:00
parent a98714031c
commit f1865af505

View File

@ -43,8 +43,10 @@ class Functional_Net_SFTPLargeFileTest extends PhpseclibFunctionalTestCase
public function tearDown() public function tearDown()
{ {
if ($this->sftp) {
$this->sftp->chdir($this->getEnv('SSH_HOME')); $this->sftp->chdir($this->getEnv('SSH_HOME'));
$this->sftp->delete($this->scratchDir); $this->sftp->delete($this->scratchDir);
}
parent::tearDown(); parent::tearDown();
} }