Author: Kévin Dunglas (dunglas@gmail.com)
Inheritance: implements ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface
 /**
  * @dataProvider getCreateDependencies
  */
 public function testCreate(ProphecyInterface $reader, ProphecyInterface $decorated = null, $expectedShortName, $expectedDescription)
 {
     $factory = new AnnotationResourceMetadataFactory($reader->reveal(), $decorated ? $decorated->reveal() : null);
     $metadata = $factory->create(Dummy::class);
     $this->assertEquals($expectedShortName, $metadata->getShortName());
     $this->assertEquals($expectedDescription, $metadata->getDescription());
     $this->assertEquals('http://example.com', $metadata->getIri());
     $this->assertEquals(['foo' => ['bar' => true]], $metadata->getItemOperations());
     $this->assertEquals(['baz' => ['tab' => false]], $metadata->getCollectionOperations());
     $this->assertEquals(['a' => 1], $metadata->getAttributes());
 }