summaryrefslogtreecommitdiff
path: root/ext/phar/tests/phar_gzip.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/phar_gzip.phpt')
-rw-r--r--ext/phar/tests/phar_gzip.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/phar/tests/phar_gzip.phpt b/ext/phar/tests/phar_gzip.phpt
index 3308424fa9..942ca9c3d0 100644
--- a/ext/phar/tests/phar_gzip.phpt
+++ b/ext/phar/tests/phar_gzip.phpt
@@ -10,9 +10,9 @@ phar.readonly=0
phar.require_hash=0
--FILE--
<?php
-$fname = dirname(__FILE__) . '/phar_gzip.phar';
+$fname = __DIR__ . '/phar_gzip.phar';
$pname = 'phar://' . $fname;
-$fname2 = dirname(__FILE__) . '/phar_gzip.2.phar';
+$fname2 = __DIR__ . '/phar_gzip.2.phar';
$pname2 = 'phar://' . $fname2;
$file = '<?php
@@ -48,8 +48,8 @@ if ($a['mtime'] != $b['mtime']) {
===DONE===
--CLEAN--
<?php
-@unlink(dirname(__FILE__) . '/phar_gzip.phar');
-@unlink(dirname(__FILE__) . '/phar_gzip.2.phar');
+@unlink(__DIR__ . '/phar_gzip.phar');
+@unlink(__DIR__ . '/phar_gzip.2.phar');
?>
--EXPECTF--
string(9) "it worked"