xref: /PHP-5.4/tests/lang/032.phpt (revision d94136fc)
1--TEST--
2Class method registration
3--FILE--
4<?php
5class A {
6	function foo() {}
7}
8
9class B extends A {
10	function foo() {}
11}
12
13class C extends B {
14	function foo() {}
15}
16
17class D extends A {
18}
19
20class F extends D {
21	function foo() {}
22}
23
24// Following class definition should fail, but cannot test
25/*
26class X {
27	function foo() {}
28	function foo() {}
29}
30*/
31
32echo "OK\n";
33?>
34--EXPECT--
35OK
36
37