コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
 /**
  * @expectedException Application\Exceptions\InvalidArgumentException
  */
 public function testInvalidTypeEnum()
 {
     $this->_enumService->getEnum('invalidEnum');
 }