1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 04:51:03 +02:00
Files
archived-php-src/ext/spl/tests/bug60201.phpt
Nikita Popov 68195bd481 Update ext/spl parameter names
Closes GH-6284.
2020-10-07 12:26:46 +02:00

29 lines
536 B
PHP

--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);
?>
--EXPECTF--
array(3) {
[0]=>
object(ReflectionParameter)#%d (1) {
["name"]=>
string(9) "separator"
}
[1]=>
object(ReflectionParameter)#%d (1) {
["name"]=>
string(9) "enclosure"
}
[2]=>
object(ReflectionParameter)#%d (1) {
["name"]=>
string(6) "escape"
}
}