Annotation of embedaddon/php/ext/reflection/tests/bug47254.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #47254
3: --CREDITS--
4: Sebastian Schürmann
5: sebs@php.net
6: Testfest 2009 Munich
7: --FILE--
8: <?php
9: class A
10: {
11: protected function a() {}
12:
13: }
14:
15: class B extends A
16: {
17: public function b() {}
18: }
19:
20: $B = new B();
21: $R = new ReflectionObject($B);
22: $m = $R->getMethods();
23: print_r($m);
24:
25: ?>
26: --CLEAN--
27: --EXPECT--
28: Array
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: )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>