1--TEST--
2Basic property hook inheritance
3--FILE--
4<?php
5
6class A {
7    public $prop {
8        get { return "A"; }
9        set { echo __METHOD__, "\n"; }
10    }
11}
12
13class B extends A {
14    public $prop {
15        get { return "B"; }
16    }
17}
18
19$a = new A;
20var_dump($a->prop);
21$a->prop = 1;
22
23$b = new B;
24var_dump($b->prop);
25$b->prop = 1;
26
27?>
28--EXPECT--
29string(1) "A"
30A::$prop::set
31string(1) "B"
32A::$prop::set
33