diff --git a/tests/Functional/Net/SFTPUserStoryTest.php b/tests/Functional/Net/SFTPUserStoryTest.php index c07c7ab7..8e806c3d 100644 --- a/tests/Functional/Net/SFTPUserStoryTest.php +++ b/tests/Functional/Net/SFTPUserStoryTest.php @@ -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 */