xref: /PHP-8.1/ext/spl/tests/bug68479.phpt (revision 5b29eba7)
1--TEST--
2Bug #68479 (Escape parameter missing from SplFileObject::fputcsv)
3--FILE--
4<?php
5
6$method = new ReflectionMethod('SplFileObject', 'fputcsv');
7$params = $method->getParameters();
8var_dump($params);
9
10?>
11--EXPECT--
12array(5) {
13  [0]=>
14  object(ReflectionParameter)#2 (1) {
15    ["name"]=>
16    string(6) "fields"
17  }
18  [1]=>
19  object(ReflectionParameter)#3 (1) {
20    ["name"]=>
21    string(9) "separator"
22  }
23  [2]=>
24  object(ReflectionParameter)#4 (1) {
25    ["name"]=>
26    string(9) "enclosure"
27  }
28  [3]=>
29  object(ReflectionParameter)#5 (1) {
30    ["name"]=>
31    string(6) "escape"
32  }
33  [4]=>
34  object(ReflectionParameter)#6 (1) {
35    ["name"]=>
36    string(3) "eol"
37  }
38}
39