Annotation of embedaddon/php/ext/reflection/tests/bug48757.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #48757 (ReflectionFunction::invoke() parameter issues)
! 3: --FILE--
! 4: <?php
! 5: function test() {
! 6: echo "Hello World\n";
! 7: }
! 8:
! 9: function another_test($parameter) {
! 10: var_dump($parameter);
! 11: }
! 12:
! 13: $func = new ReflectionFunction('test');
! 14: $func->invoke();
! 15:
! 16: $func = new ReflectionFunction('another_test');
! 17: $func->invoke('testing');
! 18: ?>
! 19: --EXPECT--
! 20: Hello World
! 21: string(7) "testing"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>