Tests/SFTP: add test for stat's on .

This commit is contained in:
terrafrost 2015-06-26 22:25:22 -05:00
parent 6789b945d0
commit 26818ebb40

View File

@ -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)