php-src/Zend/tests/inter_04.phpt

20 lines
304 B
Plaintext
Raw Normal View History

2008-05-12 06:44:56 +08:00
--TEST--
Trying declare interface with repeated name of inherited method
--FILE--
<?php
interface a {
function b();
}
interface b {
function b();
}
interface c extends a, b {
}
?>
--EXPECTF--
Fatal error: Can't inherit abstract function b::b() (previously declared abstract in a) in %s on line %d