bug45571.phpt 613 B

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