php-src/tests/lang/032.phpt
Yasuo Ohgaki 0090003920 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.
2002-03-29 02:03:27 +00:00

39 lines
395 B
PHP

--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