summaryrefslogtreecommitdiff
path: root/ext/spl/tests/fileobject_004.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/fileobject_004.phpt')
-rw-r--r--ext/spl/tests/fileobject_004.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/spl/tests/fileobject_004.phpt b/ext/spl/tests/fileobject_004.phpt
new file mode 100644
index 0000000..02e6725
--- /dev/null
+++ b/ext/spl/tests/fileobject_004.phpt
@@ -0,0 +1,22 @@
+--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==