]> granicus.if.org Git - php/commitdiff
Added class method registration test. It does not test
authorYasuo Ohgaki <yohgaki@php.net>
Fri, 29 Mar 2002 02:03:27 +0000 (02:03 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Fri, 29 Mar 2002 02:03:27 +0000 (02:03 +0000)
for multiple method definitions due to test script limitation.
# Current CVS source w/o my patch should fail, though.

tests/lang/032.phpt [new file with mode: 0644]

diff --git a/tests/lang/032.phpt b/tests/lang/032.phpt
new file mode 100644 (file)
index 0000000..6000398
--- /dev/null
@@ -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
+