Author: Kévin Dunglas (dunglas@gmail.com)
Inheritance: implements ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface
 /**
  * @dataProvider decoratedPropertyMetadataProvider
  */
 public function testCreateWithParentPropertyMetadataFactoryYaml(PropertyMetadata $expectedPropertyMetadata)
 {
     $configPath = __DIR__ . '/../../../Fixtures/FileConfigurations/resources.yml';
     $decorated = $this->prophesize(PropertyMetadataFactoryInterface::class);
     $decorated->create(FileConfigDummy::class, 'foo', [])->willReturn(new PropertyMetadata(null, null, null, null, true, null, null, false, null, null, ['Foo']))->shouldBeCalled();
     $propertyMetadataFactory = new ExtractorPropertyMetadataFactory(new YamlExtractor([$configPath]), $decorated->reveal());
     $propertyMetadata = $propertyMetadataFactory->create(FileConfigDummy::class, 'foo');
     $this->assertInstanceOf(PropertyMetadata::class, $propertyMetadata);
     $this->assertEquals($expectedPropertyMetadata, $propertyMetadata);
 }