summaryrefslogtreecommitdiff
path: root/Zend/tests/bug64239_1.phpt
blob: aa20578b8989a0520749af8bb0ecb3edc899ac54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
Bug #64239 (get_class_methods() changed behavior)
--FILE--
<?php
class A {
    use T2 { t2method as Bmethod; }
}

class B extends A {
}

trait T2 {
    public function t2method() {
    }
}
print_r(get_class_methods("A"));
print_r(get_class_methods("B"));
--EXPECT--
Array
(
    [0] => Bmethod
    [1] => t2method
)
Array
(
    [0] => Bmethod
    [1] => t2method
)