blob: 80d69dcd5c49bfa9c0a7937eb68f86707e028521 (
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
29
30
31
32
33
34
35
36
37
|
--TEST--
Bug #69180: Reflection does not honor trait conflict resolution / method aliasing
--FILE--
<?php
trait T1
{
public function foo()
{
}
}
trait T2
{
use T1 { foo as bar; }
public function foo()
{
}
}
class C
{
use T2;
}
$class = new ReflectionClass('C');
foreach ($class->getMethods() as $method) {
var_dump($method->getName());
}
?>
--EXPECT--
string(3) "foo"
string(3) "bar"
|