xref: /PHP-7.0/ext/spl/tests/fileobject_004.phpt (revision 3a4eb3e4)
1--TEST--
2SPL: SplFileObject realpath and include_path
3--FILE--
4<?php
5
6set_include_path('tests');
7
8chdir(dirname(dirname(__FILE__))); // 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==DONE==
18--EXPECTF--
19string(%d) "%sspl%stests"
20string(19) "fileobject_004.phpt"
21string(%d) "%sspl%stests%sfileobject_004.phpt"
22==DONE==
23