N98\Util\FilesystemTest::testRecursiveDirectoryRemoveUnLinksSymLinks PHP Method

    public function testRecursiveDirectoryRemoveUnLinksSymLinks()
    {
        $tmp = sys_get_temp_dir();
        $basePath = $tmp . "/n98_testdir";
        $symLinked = $tmp . "/n98_linked";
        $symLinkedFile = $symLinked . "/symlinkme.txt";
        @mkdir($basePath, 0777, true);
        @mkdir($symLinked, 0777, true);
        touch($symLinkedFile);
        $result = @symlink($symLinked, $basePath . "/symlink");
        $this->assertTrue($result);
        $this->fileSystem->recursiveRemoveDirectory($basePath);
        $this->assertFileExists($symLinkedFile);
        $this->assertFileNotExists($basePath);
    }