Annotation of embedaddon/php/ext/reflection/tests/bug47254.phpt, revision 1.1.1.2

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: --EXPECT--
                     27: Array
                     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: )

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>