summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug60201.phpt
blob: c77988eb1320ecc5c22a041202243d26abf199f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--TEST--
Bug #60201 (SplFileObject::setCsvControl does not expose third argument via Reflection)
--FILE--
<?php

$method = new ReflectionMethod('SplFileObject', 'setCsvControl');
$params = $method->getParameters(); 
var_dump($params);

?>
===DONE===
--EXPECTF--
array(3) {
  [0]=>
  object(ReflectionParameter)#%d (1) {
    ["name"]=>
    string(9) "delimiter"
  }
  [1]=>
  object(ReflectionParameter)#%d (1) {
    ["name"]=>
    string(9) "enclosure"
  }
  [2]=>
  object(ReflectionParameter)#%d (1) {
    ["name"]=>
    string(6) "escape"
  }
}
===DONE===