/** * @test */ public function testIsSymbolicLink() { $file = new Filesystem(); $dir = static::getTempPath(__FUNCTION__); mkdir($dir); $filename = rand(1, 10) . rand(0, getrandmax()); $filename2 = rand(1, 10) . rand(0, getrandmax()); $path1 = $dir . DIRECTORY_SEPARATOR . $filename; $path2 = $dir . DIRECTORY_SEPARATOR . $filename2; touch($path1); symlink($path1, $path2); $this->assertEquals(true, $file->isSymbolicLink($path2)); }