php-src/tests/classes/interface_and_extends.phpt
2004-09-06 08:40:04 +00:00

27 lines
448 B
PHP
Executable File

--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 interface Test in %sinterface_and_extends.php on line %d