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--CLEAN-- 27--EXPECT-- 28Array 29( 30 [0] => ReflectionMethod Object 31 ( 32 [name] => b 33 [class] => B 34 ) 35 36 [1] => ReflectionMethod Object 37 ( 38 [name] => a 39 [class] => A 40 ) 41 42) 43