summaryrefslogtreecommitdiff
path: root/Zend/tests/exception_005.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/exception_005.phpt')
-rw-r--r--Zend/tests/exception_005.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/exception_005.phpt b/Zend/tests/exception_005.phpt
new file mode 100644
index 0000000000..45a9269605
--- /dev/null
+++ b/Zend/tests/exception_005.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Trying to throw exception of an interface
+--FILE--
+<?php
+
+interface a { }
+
+throw new a();
+
+?>
+--EXPECTF--
+Fatal error: Cannot instantiate interface a in %s on line %d