public function testCreateService()
 {
     $aclmock = $this->prophesize('LearnZF2Acl\\Model\\Acl');
     $this->serviceLocator->get('aclmodel')->willReturn($aclmock);
     $result = $this->factory->createService($this->controllerManager->reveal());
     $this->assertInstanceOf('LearnZF2Acl\\Controller\\AclController', $result);
 }
 public function testCreateService()
 {
     $mockFormElementManager = $this->prophesize('Zend\\Form\\FormElementManager');
     $this->serviceLocator->get('FormElementManager')->willReturn($mockFormElementManager);
     $mockLogForm = $this->prophesize('LearnZF2Log\\Form\\LogForm');
     $mockFormElementManager->get('LearnZF2Log\\Form\\LogForm')->willReturn($mockLogForm);
     $result = $this->factory->createService($this->controllerManager->reveal());
     $this->assertInstanceOf('LearnZF2Log\\Controller\\IndexController', $result);
 }