diff options
Diffstat (limited to 'tests/classes/inheritance_008.phpt')
-rw-r--r-- | tests/classes/inheritance_008.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/classes/inheritance_008.phpt b/tests/classes/inheritance_008.phpt new file mode 100644 index 0000000000..2bc2783e2c --- /dev/null +++ b/tests/classes/inheritance_008.phpt @@ -0,0 +1,16 @@ +--TEST-- +Ensure private methods with the same name are not checked for inheritance rules - static +--FILE-- +<?php +class A { + static private function foo() { } + private function bar() {} +} +class B extends A { + private function foo() {} + static private function bar() {} +} +echo 'OK'; +?> +--EXPECT-- +OK |