php-src/tests/classes/interface_must_be_implemented.phpt

16 lines
314 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 {
2020-02-03 21:52:20 +00:00
function f_a();
2003-03-12 00:09:59 +00:00
}
2018-09-16 17:16:42 +00:00
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