/**
  * Constructor.
  *
  * @param Reader                        $reader     The annotation reader
  * @param AuthorizationCheckerInterface $context    The authorization checker
  * @param EntityRepository              $repository The entity repository
  */
 public function __construct(Reader $reader, AuthorizationCheckerInterface $context, EntityRepository $repository)
 {
     $this->annotationReader = $reader;
     $this->context = $context;
     $this->repository = $repository;
     $reflection = new \ReflectionClass($this->repository->getClassName());
     $this->resource = lcfirst($reflection->getShortName());
 }
 function let(Reader $reader, AuthorizationCheckerInterface $context, EntityRepository $repository)
 {
     $repository->getClassName()->shouldBeCalled()->willReturn(Argument::type('string'));
     $this->beConstructedWith($reader, $context, $repository);
 }