php-src/tests/classes/inheritance_004.phpt
2012-10-10 10:31:31 +08:00

22 lines
286 B
PHP

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