diff options
author | Fabien Villepinte <fabien.villepinte@gmail.com> | 2019-03-15 22:55:30 +0100 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2019-03-15 22:55:30 +0100 |
commit | 26dfce7f36d1c6f737ac241df1315a1b42b932c7 (patch) | |
tree | 570279b2f4d66a3de7f6ff7f7c865654ad04cea4 /ext/phar/tests/phar_oo_getcontentsgz.phpt | |
parent | 63802a8446691869371bb37078d55b99cae7eb95 (diff) | |
download | php-git-26dfce7f36d1c6f737ac241df1315a1b42b932c7.tar.gz |
Replace dirname(__FILE__) by __DIR__ in tests
Diffstat (limited to 'ext/phar/tests/phar_oo_getcontentsgz.phpt')
-rw-r--r-- | ext/phar/tests/phar_oo_getcontentsgz.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/phar/tests/phar_oo_getcontentsgz.phpt b/ext/phar/tests/phar_oo_getcontentsgz.phpt index e77b5cad1a..e15b177316 100644 --- a/ext/phar/tests/phar_oo_getcontentsgz.phpt +++ b/ext/phar/tests/phar_oo_getcontentsgz.phpt @@ -7,8 +7,8 @@ Phar object: getContent() (verify it works with compression) phar.readonly=0 --FILE-- <?php -$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php'; -$fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.2.phar.php'; +$fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php'; +$fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar.php'; $phar = new Phar($fname); $phar['a'] = 'file contents @@ -22,8 +22,8 @@ echo $phar2['a']->getContent() . "\n"; ===DONE=== --CLEAN-- <?php -unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); -unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.2.phar.php'); +unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); +unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.php'); __halt_compiler(); ?> --EXPECT-- |