1--TEST-- 2ReflectionObject::__toString() : very basic test with dynamic properties 3--FILE-- 4<?php 5 6class Foo { 7 public $bar = 1; 8} 9$f = new foo; 10$f->dynProp = 'hello'; 11$f->dynProp2 = 'hello again'; 12echo new ReflectionObject($f); 13 14?> 15--EXPECTF-- 16Object 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} 40