mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-03-21 09:42:22 +00:00
Add test case for GitHub Issue 850: Realpath in SFTP chmod().
This commit is contained in:
parent
b67c690498
commit
579e51c58f
@ -238,6 +238,20 @@ class Functional_Net_SFTPUserStoryTest extends PhpseclibFunctionalTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testTruncate
|
* @depends testTruncate
|
||||||
|
* @group github850
|
||||||
|
*/
|
||||||
|
public function testChModOnFile($sftp)
|
||||||
|
{
|
||||||
|
$this->assertNotFalse(
|
||||||
|
$sftp->chmod(0755, 'file1.txt'),
|
||||||
|
'Failed asserting that chmod() was successful.'
|
||||||
|
);
|
||||||
|
|
||||||
|
return $sftp;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @depends testChModOnFile
|
||||||
*/
|
*/
|
||||||
public function testChDirOnFile($sftp)
|
public function testChDirOnFile($sftp)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user