xref: /PHP-7.0/ext/spl/tests/bug60201.phpt (revision 5639a2a8)
1--TEST--
2Bug #60201 (SplFileObject::setCsvControl does not expose third argument via Reflection)
3--FILE--
4<?php
5
6$method = new ReflectionMethod('SplFileObject', 'setCsvControl');
7$params = $method->getParameters();
8var_dump($params);
9
10?>
11===DONE===
12--EXPECTF--
13array(3) {
14  [0]=>
15  object(ReflectionParameter)#%d (1) {
16    ["name"]=>
17    string(9) "delimiter"
18  }
19  [1]=>
20  object(ReflectionParameter)#%d (1) {
21    ["name"]=>
22    string(9) "enclosure"
23  }
24  [2]=>
25  object(ReflectionParameter)#%d (1) {
26    ["name"]=>
27    string(6) "escape"
28  }
29}
30===DONE===
31