/** * Get an specific user by its Id */ public function getAction() { $enumType = $this->_getParam('id'); $filters = $this->_getAllParams(); $this->view->data = $this->_enumSrv->getEnum($enumType, $filters); }
/** * @expectedException Application\Exceptions\InvalidArgumentException */ public function testInvalidTypeEnum() { $this->_enumService->getEnum('invalidEnum'); }