]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_5_0'.
authorSVN Migration <svn@php.net>
Thu, 26 Aug 2004 22:53:52 +0000 (22:53 +0000)
committerSVN Migration <svn@php.net>
Thu, 26 Aug 2004 22:53:52 +0000 (22:53 +0000)
tests/classes/interface_and_extends.phpt [new file with mode: 0755]

diff --git a/tests/classes/interface_and_extends.phpt b/tests/classes/interface_and_extends.phpt
new file mode 100755 (executable)
index 0000000..7f5abb3
--- /dev/null
@@ -0,0 +1,26 @@
+--TEST--
+ZE2 a class cannot extend an interface 
+--SKIPIF--
+<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
+--FILE--
+<?php
+
+interface Test
+{
+       function show();
+}
+
+class Tester extends Test
+{
+       function show() {
+               echo __METHOD__ . "\n";
+       }
+}
+
+$o = new Tester;
+$o->show();
+
+?>
+===DONE===
+--EXPECTF--
+Fatal error: Class Tester cannot extend from interfac Test in %sinterface_and_extends.php on line %d
\ No newline at end of file