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/standard/tests/dir/scandir_variation10-win32-mb.phpt | |
parent | 63802a8446691869371bb37078d55b99cae7eb95 (diff) | |
download | php-git-26dfce7f36d1c6f737ac241df1315a1b42b932c7.tar.gz |
Replace dirname(__FILE__) by __DIR__ in tests
Diffstat (limited to 'ext/standard/tests/dir/scandir_variation10-win32-mb.phpt')
-rw-r--r-- | ext/standard/tests/dir/scandir_variation10-win32-mb.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/tests/dir/scandir_variation10-win32-mb.phpt b/ext/standard/tests/dir/scandir_variation10-win32-mb.phpt index b525e3caed..b596eb0e17 100644 --- a/ext/standard/tests/dir/scandir_variation10-win32-mb.phpt +++ b/ext/standard/tests/dir/scandir_variation10-win32-mb.phpt @@ -25,10 +25,10 @@ printf("SCANDIR_SORT_NONE: %d\n", SCANDIR_SORT_NONE); echo "*** Testing scandir() : usage variations ***\n"; // include for create_files/delete_files functions -include(dirname(__FILE__) . '/../file/file.inc'); +include(__DIR__ . '/../file/file.inc'); // create directory and files -$dir = dirname(__FILE__) . '/私はガラスを食べられますscandir_variation10'; +$dir = __DIR__ . '/私はガラスを食べられますscandir_variation10'; mkdir($dir); @create_files($dir, 2, "numeric", 0755, 1, "w", "私はガラスを食べられますfile"); @@ -49,7 +49,7 @@ delete_files($dir, 2, "私はガラスを食べられますfile"); ===DONE=== --CLEAN-- <?php -$dir = dirname(__FILE__) . '/私はガラスを食べられますscandir_variation10'; +$dir = __DIR__ . '/私はガラスを食べられますscandir_variation10'; rmdir($dir); ?> --EXPECT-- |