Annotation of embedaddon/php/Zend/tests/traits/bug60165d.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #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:
8: trait A {}
9:
10: trait B {
11: public function bar() {}
12: }
13:
14: class MyClass {
15: use A, B {
16: A::bar insteadof B;
17: }
18: }
19:
20: --EXPECTF--
21: Fatal error: A precedence rule was defined for A::bar but this method does not exist in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>