php-src/tests/classes/interface_class.phpt

15 lines
325 B
Plaintext
Raw Normal View History

2003-03-12 08:09:59 +08:00
--TEST--
2003-08-09 22:48:47 +08:00
ZE2 A class can only implement interfaces
2003-03-12 08:09:59 +08:00
--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