mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
23 lines
431 B
Plaintext
23 lines
431 B
Plaintext
|
--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--
|
||
|
string(%d) "%sspl%stests"
|
||
|
string(19) "fileobject_004.phpt"
|
||
|
string(%d) "%sspl%stests%sfileobject_004.phpt"
|
||
|
==DONE==
|