summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/007_variation11.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/007_variation11.phpt')
-rw-r--r--ext/standard/tests/file/007_variation11.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/tests/file/007_variation11.phpt b/ext/standard/tests/file/007_variation11.phpt
index 0656c6460..c884f47f4 100644
--- a/ext/standard/tests/file/007_variation11.phpt
+++ b/ext/standard/tests/file/007_variation11.phpt
@@ -36,12 +36,12 @@ echo "*** Test fopen() & fclose() functions: with 'wt' mode ***\n";
$file_handle = fopen($file, "wt"); //opening the file "wt" mode
var_dump($file_handle); //Check for the content of handle
var_dump( get_resource_type($file_handle) ); //Check for the type of resource
-var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the begining of the file
+var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the file
var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of the $string
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 begining 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
@@ -53,7 +53,7 @@ clearstatcache();
unlink($file); //Deleting the file
fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created
-var_dump( file_exists($file) ); //Check for the existance of file
+var_dump( file_exists($file) ); //Check for the existence of file
echo "*** Done ***\n";
--CLEAN--
<?php