From 26dfce7f36d1c6f737ac241df1315a1b42b932c7 Mon Sep 17 00:00:00 2001 From: Fabien Villepinte Date: Fri, 15 Mar 2019 22:55:30 +0100 Subject: Replace dirname(__FILE__) by __DIR__ in tests --- ext/phar/tests/zip/phar_stub.phpt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ext/phar/tests/zip/phar_stub.phpt') diff --git a/ext/phar/tests/zip/phar_stub.phpt b/ext/phar/tests/zip/phar_stub.phpt index 49b97f24f0..197cf409a9 100644 --- a/ext/phar/tests/zip/phar_stub.phpt +++ b/ext/phar/tests/zip/phar_stub.phpt @@ -7,8 +7,8 @@ phar.require_hash=0 phar.readonly=0 --FILE-- '; $phar->setStub($file); echo $phar->getStub(); -$fname3 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phartmp.php'; +$fname3 = __DIR__ . '/' . basename(__FILE__, '.php') . '.phartmp.php'; $file = ''; $fp = fopen($fname3, 'wb'); fwrite($fp, $file); @@ -60,9 +60,9 @@ echo $phar->getStub(); ===DONE=== --CLEAN-- --EXPECT-- -- cgit v1.2.1