summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-03-29 02:03:27 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-03-29 02:03:27 +0000
commit009000392058cc053ac4ffb145bf0e111bf15691 (patch)
treef90337dc05381a86f2688b1900acedf3bfd80769 /tests
parent99723b511e512681900aa99efc968da3a5badc20 (diff)
downloadphp-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.phpt38
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
+