xref: /php-src/ext/reflection/tests/bug47254.phpt (revision f8d79582)
1--TEST--
2Bug #47254
3--CREDITS--
4Sebastian Schürmann
5sebs@php.net
6Testfest 2009 Munich
7--FILE--
8<?php
9class A
10{
11    protected function a() {}
12
13}
14
15class B extends A
16{
17    public function b() {}
18}
19
20$B = new B();
21$R = new ReflectionObject($B);
22$m = $R->getMethods();
23print_r($m);
24
25?>
26--EXPECT--
27Array
28(
29    [0] => ReflectionMethod Object
30        (
31            [name] => b
32            [class] => B
33        )
34
35    [1] => ReflectionMethod Object
36        (
37            [name] => a
38            [class] => A
39        )
40
41)
42