summaryrefslogtreecommitdiff
path: root/ext/phar/tests/phar_dir_iterate.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/phar_dir_iterate.phpt')
-rw-r--r--ext/phar/tests/phar_dir_iterate.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/phar/tests/phar_dir_iterate.phpt b/ext/phar/tests/phar_dir_iterate.phpt
index 6c04571d86..754ae44600 100644
--- a/ext/phar/tests/phar_dir_iterate.phpt
+++ b/ext/phar/tests/phar_dir_iterate.phpt
@@ -7,7 +7,7 @@ phar.readonly=0
phar.require_hash=0
--FILE--
<?php
-$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
+$fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php';
$phar = new Phar($fname);
$phar['top.txt'] = 'hi';
@@ -21,7 +21,7 @@ foreach (new RecursiveIteratorIterator($newphar) as $path => $obj) {
===DONE===
--CLEAN--
<?php
-unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
+unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
__halt_compiler();
?>
--EXPECTF--