Author: Sandy Pleyte
Author: Martijn De Letter
Exemple #1
0
 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);
 }
Exemple #2
0
 /**
  * @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();
 }