summaryrefslogtreecommitdiff
path: root/Zend/tests/errmsg_025.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/errmsg_025.phpt')
-rw-r--r--Zend/tests/errmsg_025.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/Zend/tests/errmsg_025.phpt b/Zend/tests/errmsg_025.phpt
new file mode 100644
index 0000000..014b409
--- /dev/null
+++ b/Zend/tests/errmsg_025.phpt
@@ -0,0 +1,20 @@
+--TEST--
+errmsg: cannot inherit previously inherited constant
+--FILE--
+<?php
+
+interface test1 {
+ const FOO = 10;
+}
+
+interface test2 {
+ const FOO = 10;
+}
+
+class test implements test1, test2 {
+}
+
+echo "Done\n";
+?>
+--EXPECTF--
+Fatal error: Cannot inherit previously-inherited or override constant FOO from interface test2 in %s on line %d