php-src/tests/lang/032.phpt

36 lines
395 B
Plaintext
Raw Permalink Normal View History

--TEST--
Class method registration
--FILE--
<?php
class A {
2020-02-04 05:52:20 +08:00
function foo() {}
}
class B extends A {
2020-02-04 05:52:20 +08:00
function foo() {}
}
class C extends B {
2020-02-04 05:52:20 +08:00
function foo() {}
}
class D extends A {
}
class F extends D {
2020-02-04 05:52:20 +08:00
function foo() {}
}
// Following class definition should fail, but cannot test
/*
class X {
2020-02-04 05:52:20 +08:00
function foo() {}
function foo() {}
}
*/
echo "OK\n";
?>
--EXPECT--
OK