mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 02:07:09 +00:00
Tests/SFTP: add test for stat's on .
This commit is contained in:
parent
6789b945d0
commit
26818ebb40
@ -427,8 +427,24 @@ class Functional_Net_SFTPUserStoryTest extends PhpseclibFunctionalTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* on older versions this would result in a fatal error
|
||||
* @depends testReadlink
|
||||
* @group github716
|
||||
*/
|
||||
public function testStatOnCWD($sftp)
|
||||
{
|
||||
$stat = $sftp->stat('.');
|
||||
$lstat = $sftp->lstat('.');
|
||||
$this->assertEquals(
|
||||
$stat, $lstat,
|
||||
'Failed asserting that stat and lstat on . are the same'
|
||||
);
|
||||
|
||||
return $sftp;
|
||||
}
|
||||
|
||||
/**
|
||||
* on older versions this would result in a fatal error
|
||||
* @depends testStatOnCWD
|
||||
* @group github402
|
||||
*/
|
||||
public function testStatcacheFix($sftp)
|
||||
|
Loading…
Reference in New Issue
Block a user