Annotation of embedaddon/php/ext/reflection/tests/bug41061.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Reflection Bug #41061 ("visibility error" in ReflectionFunction::export())
! 3: --FILE--
! 4: <?php
! 5:
! 6: function foo() {
! 7: }
! 8:
! 9: class bar {
! 10: private function foo() {
! 11: }
! 12: }
! 13:
! 14: Reflection::export(new ReflectionFunction('foo'));
! 15: Reflection::export(new ReflectionMethod('bar', 'foo'));
! 16: ?>
! 17: ===DONE===
! 18: <?php exit(0); ?>
! 19: --EXPECTF--
! 20: Function [ <user> function foo ] {
! 21: @@ %sbug41061.php 3 - 4
! 22: }
! 23:
! 24: Method [ <user> private method foo ] {
! 25: @@ %sbug41061.php 7 - 8
! 26: }
! 27:
! 28: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>