/** * @param string $resource * @return Manager */ public function create($resource) { $definition = $this->registry->get($resource); return new Manager($this->doctrine, $this->eventDispatcher, $definition); }
/** * @covers ::get() */ public function testGetClassNotInRegistry() { $this->setExpectedException('\\InvalidArgumentException'); $registry = new Registry(); $registry->get('\\foo\\bar'); }