xref: /PHP-8.0/ext/spl/tests/fileobject_004.phpt (revision a555cc0b)
1--TEST--
2SPL: SplFileObject realpath and include_path
3--FILE--
4<?php
5
6set_include_path('tests');
7
8chdir(dirname(__DIR__)); // ext/spl
9
10
11$fo = new SplFileObject('fileobject_004.phpt', 'r', true);
12
13var_dump($fo->getPath());
14var_dump($fo->getFilename());
15var_dump($fo->getRealPath());
16?>
17--EXPECTF--
18string(%d) "%sspl%stests"
19string(19) "fileobject_004.phpt"
20string(%d) "%sspl%stests%sfileobject_004.phpt"
21