1--TEST--
2get_class_methods(): Testing scope
3--FILE--
4<?php
5
6abstract class X {
7    public function a() { }
8    private function b() { }
9    protected function c() { }
10}
11
12class Y extends X {
13    private function bb() { }
14
15    static public function test() {
16        var_dump(get_class_methods('X'));
17        var_dump(get_class_methods('Y'));
18    }
19}
20
21
22var_dump(get_class_methods('X'));
23var_dump(get_class_methods('Y'));
24
25
26Y::test();
27
28?>
29--EXPECT--
30array(1) {
31  [0]=>
32  string(1) "a"
33}
34array(2) {
35  [0]=>
36  string(4) "test"
37  [1]=>
38  string(1) "a"
39}
40array(2) {
41  [0]=>
42  string(1) "a"
43  [1]=>
44  string(1) "c"
45}
46array(4) {
47  [0]=>
48  string(2) "bb"
49  [1]=>
50  string(4) "test"
51  [2]=>
52  string(1) "a"
53  [3]=>
54  string(1) "c"
55}
56