1--TEST-- 2Bug #64239 (ReflectionClass::getMethods() changed behavior) 3--FILE-- 4<?php 5class A { 6 use T2 { t2method as Bmethod; } 7} 8trait T2 { 9 public function t2method() { 10 } 11} 12 13class B extends A{ 14} 15 16$obj = new ReflectionClass("B"); 17print_r($obj->getMethods()); 18print_r(($method = $obj->getMethod("Bmethod"))); 19var_dump($method->getName()); 20var_dump($method->getShortName()); 21?> 22--EXPECT-- 23Array 24( 25 [0] => ReflectionMethod Object 26 ( 27 [name] => Bmethod 28 [class] => A 29 ) 30 31 [1] => ReflectionMethod Object 32 ( 33 [name] => t2method 34 [class] => A 35 ) 36 37) 38ReflectionMethod Object 39( 40 [name] => Bmethod 41 [class] => A 42) 43string(7) "Bmethod" 44string(7) "Bmethod" 45