2011-11-02 13:24:46 +00:00
|
|
|
--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]=>
|
2014-03-16 07:47:08 +00:00
|
|
|
object(ReflectionParameter)#%d (1) {
|
2011-11-02 13:24:46 +00:00
|
|
|
["name"]=>
|
|
|
|
string(9) "delimiter"
|
|
|
|
}
|
|
|
|
[1]=>
|
2014-03-16 07:47:08 +00:00
|
|
|
object(ReflectionParameter)#%d (1) {
|
2011-11-02 13:24:46 +00:00
|
|
|
["name"]=>
|
|
|
|
string(9) "enclosure"
|
|
|
|
}
|
|
|
|
[2]=>
|
2014-03-16 07:47:08 +00:00
|
|
|
object(ReflectionParameter)#%d (1) {
|
2011-11-02 13:24:46 +00:00
|
|
|
["name"]=>
|
|
|
|
string(6) "escape"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
===DONE===
|