summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/bugs/case-sensitive.phpt
blob: 13d4188f2f441e1664178eb024f7e850c9547a68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Check for problems with case sensitivity in compositions
--FILE--
<?php
error_reporting(E_ALL);

trait A {
	public function M1() {}
	public function M2() {}
}

trait B {
	public function M1() {}
	public function M2() {}
}

class MyClass {
	use A;
	use B;
}
?>
--EXPECTF--
Fatal error: Trait method M1 has not been applied, because there are collisions with other trait methods on MyClass in %s on line %d