createFromClassNameAndMethod() public static method

Create a reflection of a parameter using a class name
public static createFromClassNameAndMethod ( string $className, string $methodName, string $parameterName ) : ReflectionParameter
$className string
$methodName string
$parameterName string
return ReflectionParameter
 public function testCreateFromClassNameAndMethod()
 {
     $parameterInfo = ReflectionParameter::createFromClassNameAndMethod(\SplDoublyLinkedList::class, 'add', 'index');
     $this->assertInstanceOf(ReflectionParameter::class, $parameterInfo);
     $this->assertSame('index', $parameterInfo->getName());
 }