public function testCreateWithParentPropertyNameCollectionFactoryXml()
{
$configPath = __DIR__ . '/../../../Fixtures/FileConfigurations/resources.xml';
$decorated = $this->prophesize(PropertyNameCollectionFactoryInterface::class);
$decorated->create(FileConfigDummy::class, [])->willReturn(new PropertyNameCollection(['id']))->shouldBeCalled();
$this->assertEquals((new ExtractorPropertyNameCollectionFactory(new XmlExtractor([$configPath]), $decorated->reveal()))->create(FileConfigDummy::class), new PropertyNameCollection(['id', 'foo', 'name']));
}