public function setUp()
 {
     /** @var \Eye4web\ZfcUser\Pm\Service\PmService $pmService */
     $pmService = $this->getMockBuilder('Eye4web\\ZfcUser\\Pm\\Service\\PmService')->disableOriginalConstructor()->getMock();
     $this->pmService = $pmService;
     /** @var \Zend\Mvc\Controller\PluginManager $pluginManager */
     $pluginManager = $this->getMock('Zend\\Mvc\\Controller\\PluginManager', array('get'));
     $pluginManager->expects($this->any())->method('get')->will($this->returnCallback(array($this, 'helperMockCallbackPluginManagerGet')));
     $this->pluginManager = $pluginManager;
     /** @var \Eye4web\ZfcUser\Pm\Form\NewConversationForm $newConversationForm */
     $newConversationForm = $this->getMockBuilder('Eye4web\\ZfcUser\\Pm\\Form\\NewConversationForm')->disableOriginalConstructor()->getMock();
     $this->newConversationForm = $newConversationForm;
     /** @var \Eye4web\ZfcUser\Pm\Form\NewMessageForm $newMessageForm */
     $newMessageForm = $this->getMockBuilder('Eye4web\\ZfcUser\\Pm\\Form\\NewMessageForm')->disableOriginalConstructor()->getMock();
     $this->newMessageForm = $newMessageForm;
     /** @var \Eye4web\ZfcUser\Pm\Form\DeleteConversationsForm $deleteConversationsForm */
     $deleteConversationsForm = $this->getMockBuilder('Eye4web\\ZfcUser\\Pm\\Form\\DeleteConversationsForm')->disableOriginalConstructor()->getMock();
     $this->deleteConversationsForm = $deleteConversationsForm;
     /** @var \Eye4web\ZfcUser\Pm\Options\ModuleOptions $moduleOptions */
     $moduleOptions = $this->getMockBuilder('Eye4web\\ZfcUser\\Pm\\Options\\ModuleOptions')->disableOriginalConstructor()->getMock();
     $this->moduleOptions = $moduleOptions;
     $zfcModuleOptions = $this->getMockBuilder('ZfcUser\\Options\\ModuleOptions')->disableOriginalConstructor()->getMock();
     $this->zfcModuleOptions = $zfcModuleOptions;
     $eventManager = $this->getMock('Zend\\EventManager\\EventManager');
     $this->eventManager = $eventManager;
     $controller = new PmController($pmService, $newConversationForm, $newMessageForm, $deleteConversationsForm, $moduleOptions, $zfcModuleOptions);
     $controller->setPluginManager($pluginManager);
     $controller->setEventManager($eventManager);
     $this->controller = $controller;
 }
 /**
  * Create controller
  *
  * @param  ServiceLocatorInterface $controllerManager
  * @return PmController
  */
 public function createService(ServiceLocatorInterface $controllerManager)
 {
     /**
      * @var ServiceLocatorInterface $serviceManager
      */
     $serviceManager = $controllerManager->getServiceLocator();
     /**
      * @var PmService $pmService
      */
     $pmService = $serviceManager->get('Eye4web\\ZfcUser\\Pm\\Service\\PmService');
     $newConversationForm = $serviceManager->get('Eye4web\\ZfcUser\\Pm\\Form\\NewConversationForm');
     $newMessageForm = $serviceManager->get('Eye4web\\ZfcUser\\Pm\\Form\\NewMessageForm');
     $deleteConversationsForm = $serviceManager->get('Eye4web\\ZfcUser\\Pm\\Form\\DeleteConversationsForm');
     $options = $serviceManager->get('Eye4web\\ZfcUser\\Pm\\Options\\ModuleOptions');
     $zfcUserModuleOptions = $serviceManager->get('zfcuser_module_options');
     $controller = new PmController($pmService, $newConversationForm, $newMessageForm, $deleteConversationsForm, $options, $zfcUserModuleOptions);
     /**
      * @var \Zend\EventManager\EventManager $eventManager
      */
     $eventManager = $serviceManager->get('EventManager');
     $controller->setEventManager($eventManager);
     return $controller;
 }