Home
last modified time | relevance | path

Searched refs:fputcsv (Results 1 – 25 of 42) sorted by relevance

12

/PHP-5.6/ext/standard/tests/file/
H A Dfputcsv_error.phpt2 Test fputcsv() function : error conditions
13 echo "-- Testing fputcsv() with zero argument --\n";
14 var_dump( fputcsv() );
17 echo "-- Testing fputcsv() with more than expected number of arguments --\n";
22 var_dump( fputcsv($fp, $fields, $delim, $enclosure, $fp) );
26 echo "-- Testing fputcsv() with invalid arguments --\n";
35 /* loop to test fputcsv() with different invalid type of args */
45 -- Testing fputcsv() with zero argument --
47 Warning: fputcsv() expects at least 2 parameters, 0 given in %s on line %d
49 -- Testing fputcsv() with more than expected number of arguments --
[all …]
H A Dfputcsv_variation9.phpt2 Test fputcsv() : usage variations - two chars as enclosure & delimiter
13 echo "*** Testing fputcsv() : with two chars as enclosure & delimiter ***\n";
59 var_dump( fputcsv($file_handle, $csv_field, '++', '%%'
78 *** Testing fputcsv() : with two chars as enclosure & delimiter ***
82 Notice: fputcsv(): delimiter must be a single character in %s on line %d
84 Notice: fputcsv(): enclosure must be a single character in %s on line %d
93 Notice: fputcsv(): delimiter must be a single character in %s on line %d
95 Notice: fputcsv(): enclosure must be a single character in %s on line %d
104 Notice: fputcsv(): delimiter must be a single character in %s on line %d
106 Notice: fputcsv(): enclosure must be a single character in %s on line %d
[all …]
H A Dfputcsv_variation14.phpt67 var_dump( fputcsv($file_handle, $csv_field, '++', '%%') );
89 Notice: fputcsv(): delimiter must be a single character in %s on line %d
91 Notice: fputcsv(): enclosure must be a single character in %s on line %d
99 Notice: fputcsv(): delimiter must be a single character in %s on line %d
101 Notice: fputcsv(): enclosure must be a single character in %s on line %d
109 Notice: fputcsv(): delimiter must be a single character in %s on line %d
111 Notice: fputcsv(): enclosure must be a single character in %s on line %d
119 Notice: fputcsv(): delimiter must be a single character in %s on line %d
121 Notice: fputcsv(): enclosure must be a single character in %s on line %d
129 Notice: fputcsv(): delimiter must be a single character in %s on line %d
[all …]
H A Dfputcsv_variation3.phpt2 Test fputcsv() : usage variations - with enclosure as NULL
10 /* Testing fputcsv() to write to a file when enclosure is NULL */
12 echo "*** Testing fputcsv() : with enclosure as NULL ***\n";
76 *** Testing fputcsv() : with enclosure as NULL ***
80 Warning: fputcsv(): enclosure must be a character in %s on line %d
88 Warning: fputcsv(): enclosure must be a character in %s on line %d
96 Warning: fputcsv(): enclosure must be a character in %s on line %d
104 Warning: fputcsv(): enclosure must be a character in %s on line %d
112 Warning: fputcsv(): enclosure must be a character in %s on line %d
120 Warning: fputcsv(): enclosure must be a character in %s on line %d
[all …]
H A Dfputcsv_variation2.phpt2 Test fputcsv() : usage variations - with delimiter as NULL
10 /* Testing fputcsv() to write to a file when delimiter is NULL */
12 echo "*** Testing fputcsv() : with delimiter as NULL ***\n";
76 *** Testing fputcsv() : with delimiter as NULL ***
80 Warning: fputcsv(): delimiter must be a character in %s on line %d
88 Warning: fputcsv(): delimiter must be a character in %s on line %d
96 Warning: fputcsv(): delimiter must be a character in %s on line %d
104 Warning: fputcsv(): delimiter must be a character in %s on line %d
112 Warning: fputcsv(): delimiter must be a character in %s on line %d
120 Warning: fputcsv(): delimiter must be a character in %s on line %d
[all …]
H A Dfputcsv_variation4.phpt2 Test fputcsv() : usage variations - with delimiter and enclosure as NULL
58 var_dump( fputcsv($file_handle, $csv_field, NULL, NULL) );
76 *** Testing fputcsv() : with delimiter and enclosure as NULL ***
80 Warning: fputcsv(): delimiter must be a character in %s on line %d
88 Warning: fputcsv(): delimiter must be a character in %s on line %d
96 Warning: fputcsv(): delimiter must be a character in %s on line %d
104 Warning: fputcsv(): delimiter must be a character in %s on line %d
112 Warning: fputcsv(): delimiter must be a character in %s on line %d
120 Warning: fputcsv(): delimiter must be a character in %s on line %d
128 Warning: fputcsv(): delimiter must be a character in %s on line %d
[all …]
H A Dfputcsv_variation13.phpt2 Test fputcsv() : usage variations - with default enclosure & delimiter of two chars
59 var_dump( fputcsv($file_handle, $csv_field, '++') );
81 Notice: fputcsv(): delimiter must be a single character in %s on line %d
90 Notice: fputcsv(): delimiter must be a single character in %s on line %d
99 Notice: fputcsv(): delimiter must be a single character in %s on line %d
108 Notice: fputcsv(): delimiter must be a single character in %s on line %d
117 Notice: fputcsv(): delimiter must be a single character in %s on line %d
126 Notice: fputcsv(): delimiter must be a single character in %s on line %d
135 Notice: fputcsv(): delimiter must be a single character in %s on line %d
144 Notice: fputcsv(): delimiter must be a single character in %s on line %d
[all …]
H A Dfputcsv_002.phpt2 fputcsv(): Checking data after calling the function
12 fputcsv($fp, $data);
H A Dfputcsv_variation10.phpt2 Test fputcsv() : usage variations - with line without any csv fields
6 …Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclos…
11 /* Testing fputcsv() to write to a file when the field has no CSV format */
13 echo "*** Testing fputcsv() : with no CSV format in the field ***\n";
51 var_dump( fputcsv($file_handle, $csv_field) );
70 *** Testing fputcsv() : with no CSV format in the field ***
H A Dfputcsv.phpt2 various fputcsv() functionality tests
34 fputcsv($fp, explode(',', $v));
H A Dfputcsv_variation15.phpt2 various fputcsv() functionality tests
36 fputcsv($fp, explode(',', $v), ',', '"', '/');
H A Dfputcsv_variation1.phpt2 Test fputcsv() : usage variations - with all parameters specified
6 …Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclos…
10 /* Testing fputcsv() to write to a file when all its parameters are provided */
12 echo "*** Testing fputcsv() : with all parameters specified ***\n";
58 var_dump( fputcsv($file_handle, $csv_field, $delimiter, $enclosure) );
76 *** Testing fputcsv() : with all parameters specified ***
H A Dfputcsv_variation6.phpt2 Test fputcsv() : usage variations - with different delimiter and enclosure
6 …Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclos…
11 Testing fputcsv() to write to a file when delimiter are different from those
15 echo "*** Testing fputcsv() : with different delimiter and enclosure ***\n";
61 var_dump( fputcsv($file_handle, $csv_field, '+', '%') );
79 *** Testing fputcsv() : with different delimiter and enclosure ***
/PHP-5.6/ext/spl/tests/
H A DSplFileObject_fputcsv_error.phpt2 SplFileObject::fputcsv(): error conditions
9 echo "-- Testing fputcsv() with zero argument --\n";
10 var_dump( $fo->fputcsv() );
13 echo "-- Testing fputcsv() with more than expected number of arguments --\n";
18 var_dump( $fo->fputcsv($fields, $delim, $enclosure, $escape, $fo) );
28 -- Testing fputcsv() with zero argument --
30 Warning: SplFileObject::fputcsv() expects at least 1 parameter, 0 given in %s on line %d
32 -- Testing fputcsv() with more than expected number of arguments --
34 Warning: SplFileObject::fputcsv() expects at most 4 parameters, 5 given in %s on line %d
H A DSplFileObject_fputcsv_variation13.phpt2 Test fputcsv() : usage variations - with default enclosure & delimiter of two chars
6 /* Testing fputcsv() to write to a file when default enclosure value and delimiter
9 echo "*** Testing fputcsv() : with default enclosure & delimiter of two chars ***\n";
13 var_dump($fo->fputcsv(array('water', 'fruit'), ',,', '"'));
25 *** Testing fputcsv() : with default enclosure & delimiter of two chars ***
27 Warning: SplFileObject::fputcsv(): delimiter must be a character in %s on line %d
H A DSplFileObject_fputcsv_variation14.phpt2 Test fputcsv() : usage variations - with enclosure & delimiter of two chars
6 /* Testing fputcsv() to write to a file when default enclosure value and delimiter
9 echo "*** Testing fputcsv() : with enclosure & delimiter of two chars and file opened in read mode …
13 var_dump($fo->fputcsv(array('water', 'fruit'), ',,', '""'));
25 *** Testing fputcsv() : with enclosure & delimiter of two chars and file opened in read mode ***
27 Warning: SplFileObject::fputcsv(): enclosure must be a character in %s on line %d
H A Dbug68479.phpt2 Bug #68479 (Escape parameter missing from SplFileObject::fputcsv)
6 $method = new ReflectionMethod('SplFileObject', 'fputcsv');
H A DSplFileObject_fputcsv_002.phpt2 SplFileObject::fputcsv(): Checking data after calling the function
9 $fo->fputcsv($data);
H A DSplFileObject_fputcsv_variation10.phpt2 SplFileObject::fputcsv(): Usage variations -- with line without any CSV fields
6 /* Testing fputcsv() to write to a file when the field has no CSV format */
8 echo "*** Testing fputcsv() : with no CSV format in the field ***\n";
42 var_dump( $fo->fputcsv($csv_field) );
61 *** Testing fputcsv() : with no CSV format in the field ***
H A DSplFileObject_fputcsv.phpt2 SplFileObject::fputcsv(): functionality tests
32 $fo->fputcsv(explode(',', $v));
H A DSplFileObject_fgetcsv_delimiter_basic.phpt6 fputcsv($fp, array(
H A DSplFileObject_fgetcsv_enclosure_basic.phpt6 fputcsv($fp, array(
H A DSplFileObject_fgetcsv_basic.phpt6 fputcsv($fp, array(
H A DSplFileObject_fgetcsv_delimiter_error.phpt6 fputcsv($fp, array(
H A DSplFileObject_fgetcsv_enclosure_error.phpt6 fputcsv($fp, array(

Completed in 127 milliseconds

12