Merge branch 'ssh2-fix-multi-channel-1.0' into ssh2-fix-multi-channel-2.0

This commit is contained in:
terrafrost 2017-09-06 00:27:52 -05:00
commit 74d3a51183

View File

@ -148,5 +148,25 @@ class Functional_Net_SSH2Test extends PhpseclibFunctionalTestCase
$ssh->exec('ls -latr');
$ssh->disablePTY();
$ssh->exec('pwd');
return $ssh;
}
/**
* @depends testDisablePTY
* @group github1167
*/
public function testChannelDataAfterOpen($ssh)
{
$ssh->write("ping 127.0.0.1\n");
$ssh->enablePTY();
$ssh->exec('bash');
$ssh->write("ls -latr\n");
$ssh->setTimeout(1);
$ssh->read();
}
}