mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 11:37:33 +00:00
Merge branch '2.0'
This commit is contained in:
commit
2d226b057c
@ -114,6 +114,8 @@ class Functional_Net_SSH2Test extends PhpseclibFunctionalTestCase
|
|||||||
->method('callbackMethod')
|
->method('callbackMethod')
|
||||||
->will($this->returnValue(true));
|
->will($this->returnValue(true));
|
||||||
$ssh->exec('pwd', array($callbackObject, 'callbackMethod'));
|
$ssh->exec('pwd', array($callbackObject, 'callbackMethod'));
|
||||||
|
|
||||||
|
return $ssh;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetServerPublicHostKey()
|
public function testGetServerPublicHostKey()
|
||||||
@ -135,4 +137,16 @@ class Functional_Net_SSH2Test extends PhpseclibFunctionalTestCase
|
|||||||
'SSH2 login using an open socket failed.'
|
'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');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user