Annotation of embedaddon/php/Zend/tests/traits/bug61052.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #61052 (missing error check in trait 'insteadof' clause)
3: --FILE--
4: <?php
5: trait T1 {
6: function foo(){ echo "T1\n"; }
7: }
8: trait T2 {
9: function foo(){ echo "T2\n"; }
10: }
11: class C {
12: use T1, T2 {
13: T1::foo insteadof T1;
14: }
15: }
16: C::foo();
17: --EXPECTF--
18: Fatal error: Inconsistent insteadof definition. The method foo is to be used from T1, but T1 is also on the exclude list in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>