/** * Test * * @return void */ public function testOnDispatchWithoutConfigFile() { $config = $this->object->getServiceLocator()->get('Config'); $oldConfig = $config; unset($config['db']); $this->object->getServiceLocator()->setAllowOverride(true); $this->object->getServiceLocator()->setService('Config', $config); $this->assertInstanceOf('Zend\\Http\\PhpEnvironment\\Response', $this->object->dispatch(Registry::get('Application')->getRequest(), null)); $this->object->getServiceLocator()->setService('Config', $oldConfig); $this->object->getServiceLocator()->setAllowOverride(false); }