public function resourceMetadataProvider()
{
$resourceMetadata = new ResourceMetadata();
$metadata = ['shortName' => 'thedummyshortname', 'description' => 'Dummy resource', 'itemOperations' => ['my_op_name' => ['method' => 'GET'], 'my_other_op_name' => ['method' => 'POST']], 'collectionOperations' => ['my_collection_op' => ['method' => 'POST', 'path' => 'the/collection/path']], 'iri' => 'someirischema', 'attributes' => ['normalization_context' => ['groups' => ['default']], 'denormalization_context' => ['groups' => ['default']], 'hydra_context' => ['@type' => 'hydra:Operation', '@hydra:title' => 'File config Dummy']]];
foreach (['shortName', 'description', 'itemOperations', 'collectionOperations', 'iri', 'attributes'] as $property) {
$wither = 'with' . ucfirst($property);
$resourceMetadata = $resourceMetadata->{$wither}($metadata[$property]);
}
return [[$resourceMetadata]];
}