From: Raghubansh Kumar Date: Fri, 2 Nov 2007 03:57:48 +0000 (+0000) Subject: fix tests: proper temp file names X-Git-Tag: RELEASE_2_0_0a1~1495 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4025ace975e2207faf82d7a26035bfdf0427f8e3;p=php fix tests: proper temp file names --- diff --git a/ext/standard/tests/file/file_basic.phpt b/ext/standard/tests/file/file_basic.phpt index 6f985555c4..6b0d4b9323 100644 --- a/ext/standard/tests/file/file_basic.phpt +++ b/ext/standard/tests/file/file_basic.phpt @@ -13,17 +13,17 @@ echo "*** Testing file() with basic types of files ***\n"; $filetypes = array("numeric", "text", "empty", "text_with_new_line"); foreach( $filetypes as $type ) { - create_files($file_path, 1, $type, 0755, 100, "w", "file", 1, "byte"); - print_r( file($file_path."/file1.tmp") ); - delete_files($file_path, 1); + create_files($file_path, 1, $type, 0755, 100, "w", "file_basic", 1, "byte"); + print_r( file($file_path."/file_basic1.tmp") ); + delete_files($file_path, 1, "file_basic"); } echo "*** Testing for return type of file() function ***\n"; foreach( $filetypes as $type ) { - create_files($file_path, 1, $type); - $ret_arr = file($file_path."/file1.tmp"); + create_files($file_path, 1, $type, 0755, 1, "w", "file_basic"); + $ret_arr = file($file_path."/file_basic1.tmp"); var_dump( is_array($ret_arr) ); - delete_files($file_path, 1); + delete_files($file_path, 1, "file_basic"); } echo "\n--- Done ---"; diff --git a/ext/standard/tests/file/file_variation.phpt b/ext/standard/tests/file/file_variation.phpt index d70bbc497f..7e2c204585 100644 --- a/ext/standard/tests/file/file_variation.phpt +++ b/ext/standard/tests/file/file_variation.phpt @@ -1,5 +1,5 @@ --TEST-- -Test file() function : Variations +Test file() function : usage variations --FILE-- --EXPECTF--