--TEST-- Call property hooks by name --FILE-- {'$prop::get'}(); } catch (\Error $e) { echo $e->getMessage(), "\n"; } try { $test->{'$prop::set'}('foo'); } catch (\Error $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- Call to undefined method Test::$prop::get() Call to undefined method Test::$prop::set()