summaryrefslogtreecommitdiff
path: root/tests/classes/inheritance_004.phpt
blob: 682bee7a1b0e268e2e0e706ca0f174aea034d2ea (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() {}
}

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