Annotation of embedaddon/php/ext/reflection/tests/bug45571.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #45571 (ReflectionClass::export() shows superclasses' private static methods.)
                      3: --FILE--
                      4: <?php
                      5: 
                      6: Class A {
                      7:        static private $a       = 0;
                      8:        static protected $b = 1;
                      9:        static public $c        = 2;
                     10:        
                     11:        private function f() {}
                     12:        private static function sf() {}
                     13: }
                     14: 
                     15: Class C extends A { }
                     16: 
                     17: ReflectionClass::export("C");
                     18: 
                     19: ?>
                     20: --EXPECTF--
                     21: Class [ <user> class C extends A ] {
                     22:   @@ %s 12-12
                     23: 
                     24:   - Constants [0] {
                     25:   }
                     26: 
                     27:   - Static properties [2] {
                     28:     Property [ protected static $b ]
                     29:     Property [ public static $c ]
                     30:   }
                     31: 
                     32:   - Static methods [0] {
                     33:   }
                     34: 
                     35:   - Properties [0] {
                     36:   }
                     37: 
                     38:   - Methods [0] {
                     39:   }
                     40: }

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