summaryrefslogtreecommitdiff
path: root/Zend/tests/objects_013.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/objects_013.phpt')
-rw-r--r--Zend/tests/objects_013.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/tests/objects_013.phpt b/Zend/tests/objects_013.phpt
new file mode 100644
index 0000000..3f7bea8
--- /dev/null
+++ b/Zend/tests/objects_013.phpt
@@ -0,0 +1,15 @@
+--TEST--
+implementing the same interface twice
+--FILE--
+<?php
+
+interface foo {
+}
+
+class bar implements foo, foo {
+}
+
+echo "Done\n";
+?>
+--EXPECTF--
+Fatal error: Class bar cannot implement previously implemented interface foo in %s on line %d