create() public method

public create ( string $resourceClass, string $property, array $options = [] ) : PropertyMetadata
$resourceClass string
$property string
$options array
return ApiPlatform\Core\Metadata\Property\PropertyMetadata
 public function testClassNotFoundButParentFound()
 {
     $propertyMetadata = new PropertyMetadata();
     $decoratedProphecy = $this->prophesize(PropertyMetadataFactoryInterface::class);
     $decoratedProphecy->create('\\DoNotExist', 'foo', [])->willReturn($propertyMetadata);
     $factory = new AnnotationPropertyMetadataFactory($this->prophesize(Reader::class)->reveal(), $decoratedProphecy->reveal());
     $this->assertEquals($propertyMetadata, $factory->create('\\DoNotExist', 'foo'));
 }