1--TEST--
2SPL: Spl File Info test getLinkTarget
3--CREDITS--
4Nataniel McHugh nat@fishtrap.co.uk
5--SKIPIF--
6<?php
7if (substr(PHP_OS, 0, 3) == 'WIN') die("skip this test not for Windows platforms");
8?>
9--FILE--
10<?php
11$link = __DIR__ . '/test_link';
12symlink(__FILE__, $link );
13$fileInfo = new SplFileInfo($link);
14
15if ($fileInfo->isLink()) {
16	echo $fileInfo->getLinkTarget() == __FILE__ ? 'same' : 'different',PHP_EOL;
17}
18var_dump(unlink($link));
19?>
20--EXPECT--
21same
22bool(true)
23