ApiPlatform\Core\Tests\Metadata\Resource\Factory\ExtractorResourceMetadataFactoryTest::testXmlDoesNotExistMetadataFactory PHP Method

testXmlDoesNotExistMetadataFactory() public method

    public function testXmlDoesNotExistMetadataFactory()
    {
        $configPath = __DIR__ . '/../../../Fixtures/FileConfigurations/resourcenotfound.xml';
        $factory = new ExtractorResourceNameCollectionFactory(new XmlExtractor([$configPath]));
        $resourceMetadataFactory = new ExtractorResourceMetadataFactory(new XmlExtractor([$configPath]));
        foreach ($factory->create() as $resourceName) {
            $resourceMetadataFactory->create($resourceName);
        }
    }