Annotation of embedaddon/php/ext/reflection/tests/ReflectionObject_export_basic3.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ReflectionObject::export() - ensure dynamic property with same name as inherited private property is shown.
! 3: --FILE--
! 4: <?php
! 5: class C {
! 6: private $p = 1;
! 7: }
! 8:
! 9: class D extends C{
! 10: }
! 11:
! 12: $Obj = new D;
! 13: $Obj->p = 'value';
! 14: ReflectionObject::export($Obj)
! 15: ?>
! 16: --EXPECTF--
! 17: Object of class [ <user> class D extends C ] {
! 18: @@ %s 6-7
! 19:
! 20: - Constants [0] {
! 21: }
! 22:
! 23: - Static properties [0] {
! 24: }
! 25:
! 26: - Static methods [0] {
! 27: }
! 28:
! 29: - Properties [0] {
! 30: }
! 31:
! 32: - Dynamic properties [0] {
! 33: }
! 34:
! 35: - Methods [0] {
! 36: }
! 37: }
! 38:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>