Annotation of embedaddon/php/ext/reflection/tests/bug37964.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Reflection Bug #37964 (Reflection shows private methods of parent class)
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: abstract class foobar {
        !             7:        private function test2() {
        !             8:        }       
        !             9: }
        !            10: class foo extends foobar {
        !            11:        private $foo = 1;
        !            12:        private function test() {
        !            13:        }
        !            14:        protected function test3() {
        !            15:        }
        !            16: }
        !            17: class bar extends foo {
        !            18:        private function foobar() {
        !            19:        }
        !            20: }
        !            21: 
        !            22: Reflection::export(new ReflectionClass(new bar));
        !            23: 
        !            24: ?>
        !            25: --EXPECTF--
        !            26: Class [ <user> class bar extends foo ] {
        !            27:   @@ %s %s
        !            28: 
        !            29:   - Constants [0] {
        !            30:   }
        !            31: 
        !            32:   - Static properties [0] {
        !            33:   }
        !            34: 
        !            35:   - Static methods [0] {
        !            36:   }
        !            37: 
        !            38:   - Properties [0] {
        !            39:   }
        !            40: 
        !            41:   - Methods [2] {
        !            42:     Method [ <user> private method foobar ] {
        !            43:       @@ %s %d - %d
        !            44:     }
        !            45: 
        !            46:     Method [ <user, inherits foo> protected method test3 ] {
        !            47:       @@ %s %d - %d
        !            48:     }
        !            49:   }
        !            50: }

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