mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-27 04:34:45 +01:00
SFTP: add unit test for stat cache fix
This commit is contained in:
parent
fe7fd97b59
commit
6202d2c3ed
@ -342,7 +342,21 @@ class Functional_Net_SFTPUserStoryTest extends PhpseclibFunctionalTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends testSortOrder
|
||||
* on older versions this would result in a fatal error
|
||||
* @depends testReadlink
|
||||
* @group github402
|
||||
*/
|
||||
public function testStatcacheFix($sftp)
|
||||
{
|
||||
$sftp->mkdir('testdir');
|
||||
$sftp->chdir('testdir');
|
||||
$sftp->touch('testdir');
|
||||
$sftp->chdir('..');
|
||||
$sftp->delete('testdir', true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends testStatcacheFix
|
||||
*/
|
||||
public function testChDirUpHome($sftp)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user