summaryrefslogtreecommitdiff
path: root/ext/phar/tests/opendir.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/opendir.phpt')
-rw-r--r--ext/phar/tests/opendir.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/phar/tests/opendir.phpt b/ext/phar/tests/opendir.phpt
index 0bde7dbff7..2f5f6635d7 100644
--- a/ext/phar/tests/opendir.phpt
+++ b/ext/phar/tests/opendir.phpt
@@ -7,7 +7,7 @@ phar.require_hash=1
phar.readonly=0
--FILE--
<?php
-$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
+$fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php';
$a = new Phar($fname);
$a['index.php'] = '<?php
$a = opendir("dir");
@@ -32,7 +32,7 @@ opendir('phar://hi.phar');
?>
===DONE===
--CLEAN--
-<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
+<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
--EXPECTF--
file1.txtfile2.txtfile3.txt