Annotation of embedaddon/php/Zend/tests/traits/bugs/overridding-conflicting-methods.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
1.1.1.2 ! misho 2: Overriding Conflicting Methods should not result in a notice/warning about collisions
1.1 misho 3: --FILE--
4: <?php
5: error_reporting(E_ALL);
6:
7: trait THello1 {
8: public function hello() {
9: echo 'Hello';
10: }
11: }
12:
13: trait THello2 {
14: public function hello() {
15: echo 'Hello';
16: }
17: }
18:
19: class TraitsTest {
20: use THello1;
21: use THello2;
22: public function hello() {
23: echo 'Hello';
24: }
25: }
26:
27: $test = new TraitsTest();
28: $test->hello();
29: ?>
30: --EXPECTF--
31: Hello
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>