Annotation of embedaddon/php/ext/reflection/tests/ReflectionObject_export_basic2.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ReflectionObject::export() : very basic test with dynamic properties
! 3: --FILE--
! 4: <?php
! 5:
! 6: class Foo {
! 7: public $bar = 1;
! 8: }
! 9: $f = new foo;
! 10: $f->dynProp = 'hello';
! 11: $f->dynProp2 = 'hello again';
! 12: ReflectionObject::export($f);
! 13:
! 14: ?>
! 15: --EXPECTF--
! 16: Object of class [ <user> class Foo ] {
! 17: @@ %s 3-5
! 18:
! 19: - Constants [0] {
! 20: }
! 21:
! 22: - Static properties [0] {
! 23: }
! 24:
! 25: - Static methods [0] {
! 26: }
! 27:
! 28: - Properties [1] {
! 29: Property [ <default> public $bar ]
! 30: }
! 31:
! 32: - Dynamic properties [2] {
! 33: Property [ <dynamic> public $dynProp ]
! 34: Property [ <dynamic> public $dynProp2 ]
! 35: }
! 36:
! 37: - Methods [0] {
! 38: }
! 39: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>