summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/bugs/case-sensitive.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/traits/bugs/case-sensitive.phpt')
-rw-r--r--Zend/tests/traits/bugs/case-sensitive.phpt23
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/traits/bugs/case-sensitive.phpt b/Zend/tests/traits/bugs/case-sensitive.phpt
new file mode 100644
index 0000000..13d4188
--- /dev/null
+++ b/Zend/tests/traits/bugs/case-sensitive.phpt
@@ -0,0 +1,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