--TEST-- ReflectionObject::__toString() : very basic test with dynamic properties --FILE-- dynProp = 'hello'; $f->dynProp2 = 'hello again'; echo new ReflectionObject($f); ?> --EXPECTF-- Object of class [ class Foo ] { @@ %s 3-5 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [1] { Property [ public $bar ] } - Dynamic properties [2] { Property [ public $dynProp ] Property [ public $dynProp2 ] } - Methods [0] { } }