diff options
| author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-09-16 14:16:42 -0300 |
|---|---|---|
| committer | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-10-14 12:07:20 -0300 |
| commit | 9c144e0d8217d1ef7a83c2498214308b21af749f (patch) | |
| tree | d977ba0d8601de477c52f62accf02c120ef06253 /ext/standard/tests/file/fflush_variation3.phpt | |
| parent | b419732ddb0673dc5b15a67ee4bc7f06dd90d7d0 (diff) | |
| download | php-git-9c144e0d8217d1ef7a83c2498214308b21af749f.tar.gz | |
Trim trailing whitespace in tests
Diffstat (limited to 'ext/standard/tests/file/fflush_variation3.phpt')
| -rw-r--r-- | ext/standard/tests/file/fflush_variation3.phpt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/standard/tests/file/fflush_variation3.phpt b/ext/standard/tests/file/fflush_variation3.phpt index 0f27413930..80bbaf54f3 100644 --- a/ext/standard/tests/file/fflush_variation3.phpt +++ b/ext/standard/tests/file/fflush_variation3.phpt @@ -29,28 +29,28 @@ $count = 1; foreach( $file_types as $type ) { echo "-- Iteration $count with file containing $type data --\n"; foreach( $file_modes as $mode ) { - + // creating the file $file_handle = fopen($file_name, "w"); if($file_handle == false) exit("Error:failed to open file $file_name"); // fill the fill with some data if mode is append mode - if( substr($mode, 0, 1) == "a" ) - fill_file($file_handle, $type, 10); + if( substr($mode, 0, 1) == "a" ) + fill_file($file_handle, $type, 10); // fclose($file_handle); - + // creating hard link to the file var_dump( link($file_name, $link_name) ); - + // opening the file in different modes $file_handle = fopen($link_name, $mode); if($file_handle == false) exit("Error:failed to open link $link_name"); - + // writing data to the file - var_dump( fill_file($file_handle, $type, 50) ); + var_dump( fill_file($file_handle, $type, 50) ); var_dump( fflush($file_handle) ); fclose($file_handle); |
