summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/007_variation23.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/007_variation23.phpt')
-rw-r--r--ext/standard/tests/file/007_variation23.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/tests/file/007_variation23.phpt b/ext/standard/tests/file/007_variation23.phpt
index cfff815084..3c8bd2ff48 100644
--- a/ext/standard/tests/file/007_variation23.phpt
+++ b/ext/standard/tests/file/007_variation23.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test fopen and fclose() functions - usage variations - "xb" mode
+Test fopen and fclose() functions - usage variations - "xb" mode
--FILE--
<?php
/*
@@ -17,7 +17,7 @@ Test fopen and fclose() functions - usage variations - "xb" mode
/* Test fopen() and fclose(): Opening the file in "xb" mode,
checking for the file creation, write & read operations,
checking for the file pointer position,
- checking for the warning msg when trying to open an existing file in "xb" mode,
+ checking for the warning msg when trying to open an existing file in "xb" mode,
and fclose function
*/
$file_path = dirname(__FILE__);
@@ -33,11 +33,11 @@ var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes;
var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the end of the file
rewind($file_handle);
var_dump( fread($file_handle, 100) ); //Check for read operation; fails; expected: empty string
-var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the beginning of the file
+var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the beginning of the file
var_dump( fclose($file_handle) ); //Check for close operation on the file handle
var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
$file_handle = fopen($file, "xb"); //Opening the existing data file in 'xb' mode to check for the warning message
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation23.tmp");