Author: Kévin Dunglas (dunglas@gmail.com)
Author: Samuel ROZE (samuel.roze@gmail.com)
Inheritance: implements ApiPlatform\Core\DataProvider\CollectionDataProviderInterface
 /**
  * @expectedException \ApiPlatform\Core\Exception\ResourceClassNotSupportedException
  */
 public function testThrowResourceClassNotSupportedException()
 {
     $managerRegistryProphecy = $this->prophesize(ManagerRegistry::class);
     $managerRegistryProphecy->getManagerForClass(Dummy::class)->willReturn(null)->shouldBeCalled();
     $extensionProphecy = $this->prophesize(QueryResultCollectionExtensionInterface::class);
     $dataProvider = new CollectionDataProvider($managerRegistryProphecy->reveal(), [$extensionProphecy->reveal()]);
     $dataProvider->getCollection(Dummy::class, 'foo');
 }