mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-27 04:34:45 +01:00
SFTP: add unit tests for symlinks
This commit is contained in:
parent
a65b820b54
commit
f95bf8b10b
@ -316,6 +316,27 @@ class Functional_Net_SFTPUserStoryTest extends PhpseclibFunctionalTestCase
|
||||
return $sftp;
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends testSortOrder
|
||||
*/
|
||||
public function testSymlink($sftp)
|
||||
{
|
||||
$this->assertTrue(
|
||||
$sftp->symlink('symlink', 'file3.txt'),
|
||||
'Failed asserting that a symlink could be created'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends testSymlink
|
||||
*/
|
||||
public function testReadlink($sftp)
|
||||
{
|
||||
$this->assertInternalType('string', $sftp->readlink('symlink'),
|
||||
'Failed asserting that a symlink's target could be read'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends testSortOrder
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user