php-src/tests/classes/inheritance_004.phpt

18 lines
257 B
PHP

--TEST--
ZE2 method inheritance without interfaces
--FILE--
<?php
class A
{
function f() {}
}
class B extends A
{
function f($x) {}
}
?>
--EXPECTF--
Fatal error: Declaration of B::f($x) must be compatible with A::f() in %sinheritance_004.php on line %d