Annotation of embedaddon/php/Zend/tests/traits/conflict001.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Method conflict in traits
3: --FILE--
4: <?php
5: error_reporting(E_ALL);
6:
7: trait THello1 {
8: private function hello() {
9: echo 'Hello';
10: }
11: }
12:
13: trait THello2 {
14: private function hello() {
15: echo 'Hello';
16: }
17: }
18:
19: class TraitsTest {
20: use THello1;
21: use THello2;
22: }
23: ?>
24: --EXPECTF--
25: Fatal error: Trait method hello has not been applied, because there are collisions with other trait methods on TraitsTest in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>