xref: /PHP-8.1/Zend/tests/bug64239_1.phpt (revision 7aacc705)
1--TEST--
2Bug #64239 (get_class_methods() changed behavior)
3--FILE--
4<?php
5class A {
6    use T2 { t2method as Bmethod; }
7}
8
9class B extends A {
10}
11
12trait T2 {
13    public function t2method() {
14    }
15}
16print_r(get_class_methods("A"));
17print_r(get_class_methods("B"));
18?>
19--EXPECT--
20Array
21(
22    [0] => Bmethod
23    [1] => t2method
24)
25Array
26(
27    [0] => Bmethod
28    [1] => t2method
29)
30