diff options
author | Raghubansh Kumar <kraghuba@php.net> | 2007-10-11 11:52:27 +0000 |
---|---|---|
committer | Raghubansh Kumar <kraghuba@php.net> | 2007-10-11 11:52:27 +0000 |
commit | 26ce8bdade86bf85ce9bdc2ba2c9a427ea25d1fe (patch) | |
tree | f8f6ee1045b856f2a55dfcd3f97a1d24f9d1f401 /ext/standard | |
parent | c95f942e9ba109c4768ad1c8de544676cf131cee (diff) | |
download | php-git-26ce8bdade86bf85ce9bdc2ba2c9a427ea25d1fe.tar.gz |
fix test (temp. file name)
Diffstat (limited to 'ext/standard')
-rw-r--r-- | ext/standard/tests/file/fgetc_basic.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/tests/file/fgetc_basic.phpt b/ext/standard/tests/file/fgetc_basic.phpt index fca3a312a7..8d38f3f1dd 100644 --- a/ext/standard/tests/file/fgetc_basic.phpt +++ b/ext/standard/tests/file/fgetc_basic.phpt @@ -21,7 +21,7 @@ for($outerloop_counter = 0; $outerloop_counter < count($file_content_types); $ou echo $outerloop_counter + 1; echo " ---\n"; // create file file - create_files(dirname(__FILE__), 1, $file_content_types[$outerloop_counter]); + create_files(dirname(__FILE__), 1, $file_content_types[$outerloop_counter], 0755, 1, "w", "fgetc_basic", 1); //open the file in different modes and check the working of fgetc for($innerloop_counter = 0; $innerloop_counter < count($file_modes); $innerloop_counter++) { @@ -32,7 +32,7 @@ for($outerloop_counter = 0; $outerloop_counter < count($file_content_types); $ou echo " --\n"; // open the file using the $file_modes - $filename = dirname(__FILE__)."/file1.tmp"; // file name that is created by create_files + $filename = dirname(__FILE__)."/fgetc_basic1.tmp"; // file name that is created by create_files echo "-- Testing fgetc() : file opened using $file_modes[$innerloop_counter] mode --\n"; $file_handle = fopen($filename, $file_modes[$innerloop_counter]); if ( !$file_handle ) { @@ -55,7 +55,7 @@ for($outerloop_counter = 0; $outerloop_counter < count($file_content_types); $ou } // end of innerloop for // delete the file - delete_files(dirname(__FILE__), 1); + delete_files(dirname(__FILE__), 1, "fgetc_basic", 1, ".tmp"); } // end of outerloop for |