xref: /php-src/Zend/tests/traits/bug60165d.phpt (revision 7aacc705)
1--TEST--
2Bug #60165 (Aliasing unexisting trait should throw/trigger the exception/error)
3--FILE--
4<?php
5
6// The same is true for the insteadof operator to resolve conflicts
7
8trait A {}
9
10trait B {
11    public function bar() {}
12}
13
14class MyClass {
15    use A, B {
16        A::bar insteadof B;
17    }
18}
19?>
20--EXPECTF--
21Fatal error: A precedence rule was defined for A::bar but this method does not exist in %s on line %d
22