summaryrefslogtreecommitdiff
path: root/ext/phar/tests/addfuncs.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/addfuncs.phpt')
-rw-r--r--ext/phar/tests/addfuncs.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/phar/tests/addfuncs.phpt b/ext/phar/tests/addfuncs.phpt
index ab10736a8a..a099dc4ed9 100644
--- a/ext/phar/tests/addfuncs.phpt
+++ b/ext/phar/tests/addfuncs.phpt
@@ -6,7 +6,7 @@ Phar: addFile/addFromString
phar.readonly=0
--FILE--
<?php
-$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
+$fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php';
$pname = 'phar://' . $fname;
$phar = new Phar($fname);
$phar->addFromString('a', 'hi');
@@ -24,7 +24,7 @@ $phar->addFile($pname . '/a', 'a');
echo $e->getMessage() . "\n";
}
try {
-$phar->addFile(dirname(__FILE__) . '/does/not/exist');
+$phar->addFile(__DIR__ . '/does/not/exist');
} catch (Exception $e) {
echo $e->getMessage() . "\n";
}
@@ -41,7 +41,7 @@ echo $e->getMessage() . "\n";
?>
===DONE===
--CLEAN--
-<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
+<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
--EXPECTF--
hi
hi