/**
  *
  * @return void
  */
 public function testDispatch()
 {
     /** @noinspection PhpIncludeInspection */
     $this->setApplicationConfig(include TestPaths::getPathToIntegrationTest());
     $this->getApplication()->getEventManager()->attach(MvcEvent::EVENT_DISPATCH_ERROR, function (MvcEvent $e) {
         $exception = $e->getParam('exception', null);
         if ($exception) {
             throw $exception;
         }
     });
     $this->dispatch('test');
 }
 /**
  *
  * @return void
  */
 public function testLoadModule()
 {
     /** @noinspection PhpIncludeInspection */
     $this->setApplicationConfig(include TestPaths::getPathToIntegrationTest());
     $this->getApplication()->getEventManager()->attach(MvcEvent::EVENT_DISPATCH_ERROR, function (MvcEvent $e) {
         $exception = $e->getParam('exception', null);
         if ($exception) {
             throw $exception;
         }
     });
     $this->assertModulesLoaded(['OldTown\\Workflow\\ZF2\\Dispatch']);
 }