diff --git a/tests/Functional/Net/SSH2Test.php b/tests/Functional/Net/SSH2Test.php index 7292a978..9a9abf20 100644 --- a/tests/Functional/Net/SSH2Test.php +++ b/tests/Functional/Net/SSH2Test.php @@ -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(); } }