1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-26 20:24:39 +01:00

Merge branch '1.0' into 2.0

This commit is contained in:
terrafrost 2017-05-28 09:10:58 -05:00
commit 5e2afe3a73

View File

@ -114,6 +114,8 @@ class Functional_Net_SSH2Test extends PhpseclibFunctionalTestCase
->method('callbackMethod')
->will($this->returnValue(true));
$ssh->exec('pwd', array($callbackObject, 'callbackMethod'));
return $ssh;
}
public function testGetServerPublicHostKey()
@ -135,4 +137,16 @@ class Functional_Net_SSH2Test extends PhpseclibFunctionalTestCase
'SSH2 login using an open socket failed.'
);
}
/**
* @depends testExecWithMethodCallback
* @group github1009
*/
public function testDisablePTY($ssh)
{
$ssh->enablePTY();
$ssh->exec('ls -latr');
$ssh->disablePTY();
$ssh->exec('pwd');
}
}