1--TEST--
2Bug #76773 (Traits used on the parent are ignored for child classes) [original test with deprecated syntax]
3--FILE--
4<?php
5
6trait MyTrait
7{
8    public function hello()
9    {
10        echo __CLASS__, "\n";
11
12        if (\is_callable(array('parent', __FUNCTION__))) {
13            parent::hello();
14        }
15    }
16}
17
18class ParentClass
19{
20    use MyTrait;
21}
22
23class ChildClass extends ParentClass
24{
25    use MyTrait;
26}
27
28$c = new ChildClass();
29$c->hello();
30?>
31--EXPECTF--
32ChildClass
33
34Deprecated: Use of "parent" in callables is deprecated in %s on line %d
35ParentClass
36