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 --- .../tests/file/file_get_contents_file_put_contents_error.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt') diff --git a/ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt b/ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt index b2a09798e3..f34e6ef418 100644 --- a/ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt +++ b/ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt @@ -13,7 +13,7 @@ Test file-get_contents() and file_put_contents() functions : error conditions echo "*** Testing error conditions ***\n"; -$file_path = dirname(__FILE__); +$file_path = __DIR__; echo "\n-- Testing with Non-existing file --\n"; print( file_get_contents("/no/such/file/or/dir") ); @@ -38,7 +38,7 @@ echo "\n*** Done ***\n"; ?> --CLEAN--