mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 18:25:13 +00:00
Tests/SFTP: demo "Expected SSH_FXP_STATUS or ..." error
This commit is contained in:
parent
88ce26f8ca
commit
8530cbca1a
@ -708,5 +708,19 @@ class Functional_Net_SFTPUserStoryTest extends PhpseclibFunctionalTestCase
|
|||||||
$this->assertFalse($sftp->is_writable('nonexistantfile.ext'));
|
$this->assertFalse($sftp->is_writable('nonexistantfile.ext'));
|
||||||
$this->assertFalse($sftp->is_writeable('nonexistantfile.ext'));
|
$this->assertFalse($sftp->is_writeable('nonexistantfile.ext'));
|
||||||
$this->assertFalse($sftp->is_readable('nonexistantfile.ext'));
|
$this->assertFalse($sftp->is_readable('nonexistantfile.ext'));
|
||||||
|
|
||||||
|
return $sftp;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @depends testReadableWritable
|
||||||
|
* @group github999
|
||||||
|
*/
|
||||||
|
public function testExecNlist($sftp)
|
||||||
|
{
|
||||||
|
$sftp->enablePTY();
|
||||||
|
$sftp->exec('ping google.com -c 5');
|
||||||
|
sleep(5);
|
||||||
|
$sftp->nlist();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user