--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 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [1] { Property [ public $bar = 1 ] } - Dynamic properties [2] { Property [ public $dynProp ] Property [ public $dynProp2 ] } - Methods [0] { } }