public function testDb() { $filename = 'docs/dbpatch.ini'; $config = new DbPatch_Core_Config($filename); $db = new DbPatch_Core_Db($config->getConfig()); $this->assertTrue(is_object($db)); $this->assertTrue(is_object($db->getAdapter())); $this->assertTrue($db->getAdapter() instanceof Zend_Db_Adapter_Abstract); }
/** * @param string $filename * @return null|\Zend_Config|\Zend_Config_Ini|\Zend_Config_Xml */ protected function getConfig($filename = null) { $config = new DbPatch_Core_Config($filename); return $config->getConfig(); }