summaryrefslogtreecommitdiff
path: root/tests/classes/inheritance_003.phpt
blob: 224c8299aa4e2359e3faedc33d80dcda129291b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
ZE2 method inheritance without interfaces
--FILE--
<?php

class A
{
    function f($x) {}
}

class B extends A
{
    function f() {}
}

?>
--EXPECTF--
Fatal error: Declaration of B::f() must be compatible with A::f($x) in %sinheritance_003.php on line %d