Symfony\Component\Filesystem\Tests\FilesystemTest::testReadLinkCanonicalizePath PHP Method

testReadLinkCanonicalizePath() public method

    public function testReadLinkCanonicalizePath()
    {
        $this->markAsSkippedIfSymlinkIsMissing();
        $file = $this->normalize($this->workspace . '/file');
        mkdir($this->normalize($this->workspace . '/dir'));
        touch($file);
        $this->assertEquals($file, $this->filesystem->readlink($this->normalize($this->workspace . '/dir/../file'), true));
    }
FilesystemTest