Annotation of embedaddon/php/ext/reflection/tests/ReflectionParameter_toString_basic.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ReflectionParameter::__toString()
! 3: --CREDITS--
! 4: Stefan Koopmanschap <stefan@stefankoopmanschap.nl>
! 5: --FILE--
! 6: <?php
! 7: function ReflectionParameterTest($test, $test2 = null) {
! 8: echo $test;
! 9: }
! 10: $reflect = new ReflectionFunction('ReflectionParameterTest');
! 11: $params = $reflect->getParameters();
! 12: foreach($params as $key => $value) {
! 13: echo $value->__toString() . "\n";
! 14: }
! 15: ?>
! 16: ==DONE==
! 17: --EXPECT--
! 18: Parameter #0 [ <required> $test ]
! 19: Parameter #1 [ <optional> $test2 = NULL ]
! 20: ==DONE==
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>