php-8.0.30-src/ext/spl/tests/bug48361.phpt

12 lines
284 B
PHP

--TEST--
SPL: Bug #48361 SpleFileInfo::getPathName should return the dirname's path
--FILE--
<?php
$info = new SplFileInfo(__FILE__);
var_dump($info->getRealPath());
var_dump($info->getPathInfo()->getRealPath());
?>
--EXPECTF--
string(%d) "%stests%sbug48361.php"
string(%d) "%stests"