ApiPlatform\Core\Tests\Metadata\Resource\Factory\ExtractorResourceMetadataFactoryTest::testYamlDoesNotExistMetadataFactory PHP Méthode

testYamlDoesNotExistMetadataFactory() public méthode

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