1--TEST--
2Hooked properties in traits
3--FILE--
4<?php
5
6trait T {
7 public $prop {
8 get { echo __METHOD__, "\n"; }
9 set { echo __METHOD__, "\n"; }
10 }
11}
12
13class C {
14 use T;
15}
16
17$test = new C;
18$test->prop;
19$test->prop = 1;
20
21?>
22--EXPECT--
23T::$prop::get
24T::$prop::set
25