--TEST-- ReflectionProperty::getHooks() --FILE-- hasHooks()); var_dump($rp->getHooks()); } ?> --EXPECT-- bool(false) array(0) { } bool(true) array(2) { ["get"]=> object(ReflectionMethod)#1 (2) { ["name"]=> string(11) "$prop2::get" ["class"]=> string(4) "Test" } ["set"]=> object(ReflectionMethod)#3 (2) { ["name"]=> string(11) "$prop2::set" ["class"]=> string(4) "Test" } } bool(true) array(1) { ["get"]=> object(ReflectionMethod)#2 (2) { ["name"]=> string(11) "$prop3::get" ["class"]=> string(4) "Test" } } bool(true) array(1) { ["set"]=> object(ReflectionMethod)#3 (2) { ["name"]=> string(11) "$prop4::set" ["class"]=> string(4) "Test" } }