Annotation of embedaddon/php/ext/reflection/tests/ReflectionClass_export_basic2.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ReflectionClass::export() - ensure inherited private props are hidden.
! 3: --FILE--
! 4: <?php
! 5: Class c {
! 6: private $a;
! 7: static private $b;
! 8: }
! 9:
! 10: class d extends c {}
! 11:
! 12: ReflectionClass::export("c");
! 13: ReflectionClass::export("d");
! 14: ?>
! 15: --EXPECTF--
! 16: Class [ <user> class c ] {
! 17: @@ %s 2-5
! 18:
! 19: - Constants [0] {
! 20: }
! 21:
! 22: - Static properties [1] {
! 23: Property [ private static $b ]
! 24: }
! 25:
! 26: - Static methods [0] {
! 27: }
! 28:
! 29: - Properties [1] {
! 30: Property [ <default> private $a ]
! 31: }
! 32:
! 33: - Methods [0] {
! 34: }
! 35: }
! 36:
! 37: Class [ <user> class d extends c ] {
! 38: @@ %s 7-7
! 39:
! 40: - Constants [0] {
! 41: }
! 42:
! 43: - Static properties [0] {
! 44: }
! 45:
! 46: - Static methods [0] {
! 47: }
! 48:
! 49: - Properties [0] {
! 50: }
! 51:
! 52: - Methods [0] {
! 53: }
! 54: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>