mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-29 04:23:34 +00:00
Clean Up Tests
This commit is contained in:
parent
e700ac7561
commit
746e9eef57
@ -29,9 +29,8 @@ class SSH2Test extends PhpseclibFunctionalTestCase
|
|||||||
* @depends testConstructor
|
* @depends testConstructor
|
||||||
* @group github408
|
* @group github408
|
||||||
* @group github412
|
* @group github412
|
||||||
* @param SSH2 $ssh
|
|
||||||
*/
|
*/
|
||||||
public function testPreLogin($ssh)
|
public function testPreLogin(SSH2 $ssh)
|
||||||
{
|
{
|
||||||
$this->assertFalse(
|
$this->assertFalse(
|
||||||
$ssh->isConnected(),
|
$ssh->isConnected(),
|
||||||
@ -63,9 +62,8 @@ class SSH2Test extends PhpseclibFunctionalTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testPreLogin
|
* @depends testPreLogin
|
||||||
* @param SSH2 $ssh
|
|
||||||
*/
|
*/
|
||||||
public function testBadPassword($ssh)
|
public function testBadPassword(SSH2 $ssh)
|
||||||
{
|
{
|
||||||
$username = $this->getEnv('SSH_USERNAME');
|
$username = $this->getEnv('SSH_USERNAME');
|
||||||
$password = $this->getEnv('SSH_PASSWORD');
|
$password = $this->getEnv('SSH_PASSWORD');
|
||||||
@ -89,9 +87,8 @@ class SSH2Test extends PhpseclibFunctionalTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testBadPassword
|
* @depends testBadPassword
|
||||||
* @param SSH2 $ssh
|
|
||||||
*/
|
*/
|
||||||
public function testPasswordLogin($ssh)
|
public function testPasswordLogin(SSH2 $ssh)
|
||||||
{
|
{
|
||||||
$username = $this->getEnv('SSH_USERNAME');
|
$username = $this->getEnv('SSH_USERNAME');
|
||||||
$password = $this->getEnv('SSH_PASSWORD');
|
$password = $this->getEnv('SSH_PASSWORD');
|
||||||
@ -111,9 +108,8 @@ class SSH2Test extends PhpseclibFunctionalTestCase
|
|||||||
/**
|
/**
|
||||||
* @depends testPasswordLogin
|
* @depends testPasswordLogin
|
||||||
* @group github280
|
* @group github280
|
||||||
* @param SSH2 $ssh
|
|
||||||
*/
|
*/
|
||||||
public function testExecWithMethodCallback($ssh)
|
public function testExecWithMethodCallback(SSH2 $ssh)
|
||||||
{
|
{
|
||||||
$callbackObject = $this->getMockBuilder('stdClass')
|
$callbackObject = $this->getMockBuilder('stdClass')
|
||||||
->setMethods(['callbackMethod'])
|
->setMethods(['callbackMethod'])
|
||||||
@ -150,9 +146,8 @@ class SSH2Test extends PhpseclibFunctionalTestCase
|
|||||||
/**
|
/**
|
||||||
* @depends testExecWithMethodCallback
|
* @depends testExecWithMethodCallback
|
||||||
* @group github1009
|
* @group github1009
|
||||||
* @param SSH2 $ssh
|
|
||||||
*/
|
*/
|
||||||
public function testDisablePTY($ssh)
|
public function testDisablePTY(SSH2 $ssh)
|
||||||
{
|
{
|
||||||
$ssh->enablePTY();
|
$ssh->enablePTY();
|
||||||
$ssh->exec('ls -latr');
|
$ssh->exec('ls -latr');
|
||||||
@ -167,9 +162,8 @@ class SSH2Test extends PhpseclibFunctionalTestCase
|
|||||||
/**
|
/**
|
||||||
* @depends testDisablePTY
|
* @depends testDisablePTY
|
||||||
* @group github1167
|
* @group github1167
|
||||||
* @param SSH2 $ssh
|
|
||||||
*/
|
*/
|
||||||
public function testChannelDataAfterOpen($ssh)
|
public function testChannelDataAfterOpen(SSH2 $ssh)
|
||||||
{
|
{
|
||||||
// Ubuntu's OpenSSH from 5.8 to 6.9 didn't work with multiple channels. see
|
// Ubuntu's OpenSSH from 5.8 to 6.9 didn't work with multiple channels. see
|
||||||
// https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1334916 for more info.
|
// https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1334916 for more info.
|
||||||
|
Loading…
Reference in New Issue
Block a user