mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-30 04:39:02 +01: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_writeable('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