Annotation of embedaddon/php/ext/spl/tests/bug60201.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #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();
! 8: var_dump($params);
! 9:
! 10: ?>
! 11: ===DONE===
! 12: --EXPECTF--
! 13: array(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===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>