xref: /PHP-7.2/ext/reflection/tests/bug45571.phpt (revision 17ccbeec)
1--TEST--
2Bug #45571 (ReflectionClass::export() shows superclasses' private static methods.)
3--FILE--
4<?php
5
6Class 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
15Class C extends A { }
16
17ReflectionClass::export("C");
18
19?>
20--EXPECTF--
21Class [ <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}
41