createFromName() public static method

Create a reflection of a class's property by it's name
public static createFromName ( string $className, string $propertyName ) : BetterReflection\Reflection\ReflectionMethod
$className string
$propertyName string
return BetterReflection\Reflection\ReflectionMethod
 public function testCreateFromName()
 {
     $property = ReflectionProperty::createFromName(\ReflectionFunctionAbstract::class, 'name');
     $this->assertInstanceOf(ReflectionProperty::class, $property);
     $this->assertSame('name', $property->getName());
 }