diff options
Diffstat (limited to 'tests/lang/032.phpt')
-rw-r--r-- | tests/lang/032.phpt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/lang/032.phpt b/tests/lang/032.phpt new file mode 100644 index 0000000..caa4c7e --- /dev/null +++ b/tests/lang/032.phpt @@ -0,0 +1,36 @@ +--TEST-- +Class method registration +--FILE-- +<?php +class A { + function foo() {} +} + +class B extends A { + function foo() {} +} + +class C extends B { + function foo() {} +} + +class D extends A { +} + +class F extends D { + function foo() {} +} + +// Following class definition should fail, but cannot test +/* +class X { + function foo() {} + function foo() {} +} +*/ + +echo "OK\n"; +?> +--EXPECT-- +OK + |