summaryrefslogtreecommitdiff
path: root/tests/classes/interface_class.phpt
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-03-12 00:09:59 +0000
committerMarcus Boerger <helly@php.net>2003-03-12 00:09:59 +0000
commita1cafdf0c45c224336ceb5a84fd5d40c6c1fa05e (patch)
treecfd8f0731787e0a667f9401dfce9675d3aff23aa /tests/classes/interface_class.phpt
parentd40537327046c20f1b74529419b2cbb091256b2a (diff)
downloadphp-git-a1cafdf0c45c224336ceb5a84fd5d40c6c1fa05e.tar.gz
Added some interface tests
Diffstat (limited to 'tests/classes/interface_class.phpt')
-rw-r--r--tests/classes/interface_class.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/classes/interface_class.phpt b/tests/classes/interface_class.phpt
new file mode 100644
index 0000000000..bdfa76daad
--- /dev/null
+++ b/tests/classes/interface_class.phpt
@@ -0,0 +1,14 @@
+--TEST--
+A class can only implement interfaces
+--SKIPIF--
+<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
+--FILE--
+<?php
+class base {
+}
+
+class derived implements base {
+}
+?>
+--EXPECTF--
+Fatal error: derived cannot implement base - it is not an interface in %s on line %d