Replacement for the original getMethod() method which makes sure
that MethodReflection objects are returned instead of the
orginal ReflectionMethod instances.
/** * @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')); }