mirror of
https://github.com/php/php-src.git
synced 2024-09-28 21:36:12 +00:00
43 lines
517 B
Plaintext
43 lines
517 B
Plaintext
|
--TEST--
|
||
|
Bug #47254
|
||
|
--CREDITS--
|
||
|
Sebastian Schürmann
|
||
|
sebs@php.net
|
||
|
Testfest 2009 Munich
|
||
|
--FILE--
|
||
|
<?php
|
||
|
class A
|
||
|
{
|
||
|
protected function a() {}
|
||
|
|
||
|
}
|
||
|
|
||
|
class B extends A
|
||
|
{
|
||
|
public function b() {}
|
||
|
}
|
||
|
|
||
|
$B = new B();
|
||
|
$R = new ReflectionObject($B);
|
||
|
$m = $R->getMethods();
|
||
|
print_r($m);
|
||
|
|
||
|
?>
|
||
|
--CLEAN--
|
||
|
--EXPECT--
|
||
|
Array
|
||
|
(
|
||
|
[0] => ReflectionMethod Object
|
||
|
(
|
||
|
[name] => b
|
||
|
[class] => B
|
||
|
)
|
||
|
|
||
|
[1] => ReflectionMethod Object
|
||
|
(
|
||
|
[name] => a
|
||
|
[class] => A
|
||
|
)
|
||
|
|
||
|
)
|