summaryrefslogtreecommitdiff
path: root/ext/standard/tests/dir/opendir_error2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/dir/opendir_error2.phpt')
-rw-r--r--ext/standard/tests/dir/opendir_error2.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/tests/dir/opendir_error2.phpt b/ext/standard/tests/dir/opendir_error2.phpt
index 9156585938..47b7709cec 100644
--- a/ext/standard/tests/dir/opendir_error2.phpt
+++ b/ext/standard/tests/dir/opendir_error2.phpt
@@ -20,11 +20,11 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
echo "*** Testing opendir() : error conditions ***\n";
echo "\n-- Pass a non-existent absolute path: --\n";
-$path = dirname(__FILE__) . "/idonotexist";
+$path = __DIR__ . "/idonotexist";
var_dump(opendir($path));
echo "\n-- Pass a non-existent relative path: --\n";
-chdir(dirname(__FILE__));
+chdir(__DIR__);
var_dump(opendir('idonotexist'));
?>
===DONE===