php-src/tests/classes/interface_must_be_implemented.phpt

16 lines
312 B
Plaintext
Raw Normal View History

2003-03-12 00:09:59 +00:00
--TEST--
2003-08-09 14:48:47 +00:00
ZE2 An interface must be implemented
2003-03-12 00:09:59 +00:00
--FILE--
<?php
interface if_a {
2004-10-20 22:36:32 +00:00
function f_a();
2003-03-12 00:09:59 +00:00
}
class derived_a implements if_a {
}
?>
--EXPECTF--
2005-05-03 13:46:00 +00:00
Fatal error: Class derived_a contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (if_a::f_a) in %s on line %d