diff options
Diffstat (limited to 'ext/standard/tests/file/file_get_contents_basic001.phpt')
-rw-r--r-- | ext/standard/tests/file/file_get_contents_basic001.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/tests/file/file_get_contents_basic001.phpt b/ext/standard/tests/file/file_get_contents_basic001.phpt index 71b69634d2..86569d7917 100644 --- a/ext/standard/tests/file/file_get_contents_basic001.phpt +++ b/ext/standard/tests/file/file_get_contents_basic001.phpt @@ -5,7 +5,7 @@ file_get_contents() test using basic syntax --FILE-- <?php $file_content = "Bienvenue au CodeFest a Montreal"; - $temp_filename = dirname(__FILE__)."/fichier_a_lire.txt"; + $temp_filename = __DIR__."/fichier_a_lire.txt"; $handle = fopen($temp_filename,"w"); fwrite($handle,$file_content); fclose($handle); @@ -14,7 +14,7 @@ file_get_contents() test using basic syntax ?> --CLEAN-- <?php - $temp_filename = dirname(__FILE__)."/fichier_a_lire.txt"; + $temp_filename = __DIR__."/fichier_a_lire.txt"; unlink($temp_filename); ?> --EXPECT-- |