--TEST--
SPL: Spl File Info test getLinkTarget
--CREDITS--
Nataniel McHugh nat@fishtrap.co.uk
--SKIPIF--
<?php
if (substr(PHP_OS03) == 'WIN') die("skip this test not for Windows platforms");
?>
--FILE--
<?php
$link 
__DIR__ '/test_link';
symlink(__FILE__$link );
$fileInfo = new SplFileInfo($link);

if (
$fileInfo->isLink()) {
    echo 
$fileInfo->getLinkTarget() == __FILE__ 'same' 'different',PHP_EOL;
}
var_dump(unlink($link));
?>
--EXPECT--
same
bool(true)
alue
array(3) {
  ["key number 6"]=>
  string(13) "The 6th value"
  ["key2"]=>
  string(27) "Content 2 replaced 2nd time"
  ["key5"]=>
  string(23) "The last content string"
}
--NO-LOCK--
3NYNYY
Content String 2
Content 2 replaced
Read during write: not allowed
Content 2 replaced 2nd time
The 6th value
array(3) {
  ["key number 6"]=>
  string(13) "The 6th value"
  ["key2"]=>
  string(27) "Content 2 replaced 2nd time"
  ["key5"]=>
  string(23) "The last content string"
}
===DONE===