php-src/tests/classes/inheritance_003.phpt

22 lines
279 B
Plaintext
Raw Normal View History

2006-05-31 07:11:13 +08:00
--TEST--
ZE2 method inheritance without interfaces
--FILE--
<?php
class A
{
function f($x) {}
}
class B extends A
{
function f() {}
}
?>
===DONE===
--EXPECTF--
Warning: Declaration of B::f() should be compatible with A::f($x) in %sinheritance_003.php on line %d
2009-04-26 05:12:23 +08:00
===DONE===