Annotation of embedaddon/php/Zend/tests/traits/bugs/case-sensitive.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Check for problems with case sensitivity in compositions
3: --FILE--
4: <?php
5: error_reporting(E_ALL);
6:
7: trait A {
8: public function M1() {}
9: public function M2() {}
10: }
11:
12: trait B {
13: public function M1() {}
14: public function M2() {}
15: }
16:
17: class MyClass {
18: use A;
19: use B;
20: }
21: ?>
22: --EXPECTF--
23: Fatal error: Trait method M1 has not been applied, because there are collisions with other trait methods on MyClass in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>