1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-11-30 04:39:21 +01:00

SFTP: add unit tests for symlinks

This commit is contained in:
terrafrost 2014-06-19 09:00:23 -05:00
parent a65b820b54
commit f95bf8b10b

View File

@ -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
*/