Annotation of embedaddon/php/Zend/tests/traits/bug60165c.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: trait A {
7: public function bar() {}
8: }
9:
10: trait B {
11: public function foo() {}
12: }
13:
14: class MyClass {
15: use A, B {
16: foo as fooB;
17: baz as foobar;
18: }
19: }
20:
21: --EXPECTF--
22: Fatal error: An alias (foobar) was defined for method baz(), but this method does not exist in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>