diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2002-03-29 02:03:27 +0000 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-03-29 02:03:27 +0000 |
commit | 009000392058cc053ac4ffb145bf0e111bf15691 (patch) | |
tree | f90337dc05381a86f2688b1900acedf3bfd80769 /tests | |
parent | 99723b511e512681900aa99efc968da3a5badc20 (diff) | |
download | php-git-009000392058cc053ac4ffb145bf0e111bf15691.tar.gz |
Added class method registration test. It does not test
for multiple method definitions due to test script limitation.
# Current CVS source w/o my patch should fail, though.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/032.phpt | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/lang/032.phpt b/tests/lang/032.phpt new file mode 100644 index 0000000000..6000398ed6 --- /dev/null +++ b/tests/lang/032.phpt @@ -0,0 +1,38 @@ +--TEST-- +Class method registration +--POST-- +--GET-- +--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 + |