You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
448 B

--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