12345678910111213141516171819202122232425262728293031323334353637 |
- --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"
|