getMethod() public method

Replacement for the original getMethod() method which makes sure that MethodReflection objects are returned instead of the orginal ReflectionMethod instances.
public getMethod ( string $name ) : MethodReflection
$name string
return MethodReflection Method reflection object of the named method
 /**
  * @test
  */
 public function getMethodReturnsFlowsMethodReflection()
 {
     $class = new ClassReflection(__CLASS__);
     $method = $class->getMethod('getMethodReturnsFlowsMethodReflection');
     $this->assertInstanceOf(MethodReflection::class, $method, 'The returned method is not of type \\Neos\\Flow\\Reflection\\MethodReflection.');
 }
 /**
  * @test
  */
 public function proxiedMethodsDoContainAnnotationsOnlyOnce()
 {
     $class = new ClassReflection(Fixtures\PrototypeClassA::class);
     $method = $class->getMethod('setSomeProperty');
     $this->assertEquals(['autoStart=true'], $method->getTagValues('session'));
 }