diff options
Diffstat (limited to 'ext/spl/tests/bug60201.phpt')
| -rw-r--r-- | ext/spl/tests/bug60201.phpt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ext/spl/tests/bug60201.phpt b/ext/spl/tests/bug60201.phpt new file mode 100644 index 0000000..68a5daa --- /dev/null +++ b/ext/spl/tests/bug60201.phpt @@ -0,0 +1,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=== |
