/** * @test */ public function getParametersReturnsFLOW3sParameterReflection($dummyArg1 = NULL, $dummyArg2 = NULL) { $method = new \TYPO3\FLOW3\Reflection\MethodReflection(__CLASS__, __FUNCTION__); foreach ($method->getParameters() as $parameter) { $this->assertInstanceOf('TYPO3\\FLOW3\\Reflection\\ParameterReflection', $parameter); $this->assertEquals(__CLASS__, $parameter->getDeclaringClass()->getName()); } }
/** * Returns all tags and their values the specified method is tagged with * * @param string $className Name of the class containing the method * @param string $methodName Name of the method to return the tags and values of * @return array An array of tags and their values or an empty array of no tags were found * @api */ public function getMethodTagsValues($className, $methodName) { if ($className[0] === '\\') { $className = substr($className, 1); } $method = new \TYPO3\FLOW3\Reflection\MethodReflection($className, $methodName); return $method->getTagsValues(); }