1--TEST--
2ReflectionProperty::{get,set}Value() invokes hooks
3--FILE--
4<?php
5
6class Test {
7    public $a {
8        get {
9            echo "Get called\n";
10            return 'Foo';
11        }
12        set {
13            echo "Set called with value $value\n";
14        }
15    }
16}
17
18$propertyReflection = (new ReflectionProperty(Test::class, 'a'));
19
20$test = new Test();
21var_dump($propertyReflection->getValue($test));
22$propertyReflection->setValue($test, 'Baz');
23
24?>
25--EXPECT--
26Get called
27string(3) "Foo"
28Set called with value Baz
29