xref: /php-src/ext/reflection/tests/gh9409.phpt (revision 1435fc62)
1--TEST--
2GH-9409: Private method is incorrectly dumped as "overwrites"
3--FILE--
4<?php
5
6class A {
7    private function privateMethod() {}
8}
9
10class C extends A {
11    private function privateMethod() {}
12}
13
14echo (new ReflectionClass('A'))->getMethod('privateMethod');
15echo (new ReflectionClass('C'))->getMethod('privateMethod');
16
17?>
18--EXPECTF--
19Method [ <user> private method privateMethod ] {
20  @@ %s %d - %d
21}
22Method [ <user> private method privateMethod ] {
23  @@ %s %d - %d
24}
25