Annotation of embedaddon/php/ext/spl/tests/fileobject_004.phpt, revision 1.1.1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>