summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplFileObject_fputcsv_variation11.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/SplFileObject_fputcsv_variation11.phpt')
-rw-r--r--ext/spl/tests/SplFileObject_fputcsv_variation11.phpt10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/spl/tests/SplFileObject_fputcsv_variation11.phpt b/ext/spl/tests/SplFileObject_fputcsv_variation11.phpt
index c85dd0a8cd..2deafac1ea 100644
--- a/ext/spl/tests/SplFileObject_fputcsv_variation11.phpt
+++ b/ext/spl/tests/SplFileObject_fputcsv_variation11.phpt
@@ -29,13 +29,13 @@ $file = "$file_path/fputcsv_variation11.tmp";
$file_modes = array ("r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
-
- echo "\n-- file opened in $file_modes[$mode_counter] --\n";
+
+ echo "\n-- file opened in $file_modes[$mode_counter] --\n";
// create the file and add the content with has csv fields
if ( strstr($file_modes[$mode_counter], "r") ) {
$fo = new SplFileObject($file, 'w');
@@ -45,7 +45,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
// write to a file in csv format
var_dump( $fo->fputcsv($csv_field, $delimiter) );
// check the file pointer position and eof
@@ -53,7 +53,7 @@ foreach ($csv_lists as $csv_list) {
var_dump( $fo->eof() );
//close the file
unset($fo);
-
+
// print the file contents
var_dump( file_get_contents($file) );