php-src/ext/spl/tests/fileobject_004.phpt
Etienne Kneuss c621d4f63f - Fix filename in debug_info
- Fix #45345 (getPathInfo on the file instead of the dir)
- Remove trailing / on input
2008-07-08 22:40:30 +00:00

23 lines
419 B
PHP

--TEST--
SPL: SplFileObject realpath and include_path
--FILE--
<?php
set_include_path('tests');
chdir(dirname(dirname(__FILE__))); // ext/spl
$fo = new SplFileObject('fileobject_004.phpt', 'r', true);
var_dump($fo->getPath());
var_dump($fo->getFilename());
var_dump($fo->getRealPath());
?>
==DONE==
--EXPECTF--
%s(%d) "%sspl%stests"
%s(19) "fileobject_004.phpt"
%s(%d) "%sspl%stests%sfileobject_004.phpt"
==DONE==