<?php

class ZendDbTest extends \PHPUnit_Framework_TestCase
{
    public function testInstantiateDbAdapter()
    {
        $adapter = \Zend_Db::factory(
            'Pdo_Sqlite',
            array(
                'dbname' => dirname(__FILE__) . '/../../../data/test.sqlite'
            )
        );
        $this->assertInstanceOf('\Zend_Db_Adapter_Pdo_Sqlite', $adapter);
    }

    public function testZendDbFactoryWithZendConfig()
    {
        $config = new Zend_Config(
            array(
                'database' => array(
                    'adapter' => 'Pdo_Sqlite',
                    'params'  => array(
                        'dbname' => dirname(__FILE__) . '/../../../data/test.sqlite'
                    )
                )
            )
        );

        $adapter = Zend_Db::factory($config->database);
        $this->assertInstanceOf('\Zend_Db_Adapter_Pdo_Sqlite', $adapter);
    }
}

<?php

class ZendDbTest extends \PHPUnit_Framework_TestCase
{
    public function testInstantiateDbAdapter()
    {
        $adapter = \Zend_Db::factory(
            'Pdo_Sqlite',
            array(
                'dbname' => dirname(__FILE__) . '/../../../data/test.sqlite'
            )
        );
        $this->assertInstanceOf('\Zend_Db_Adapter_Pdo_Sqlite', $adapter);
    }
}

--- 
+++ 
@@ -12,4 +12,21 @@
         );
         $this->assertInstanceOf('\Zend_Db_Adapter_Pdo_Sqlite', $adapter);
     }
+
+    public function testZendDbFactoryWithZendConfig()
+    {
+        $config = new Zend_Config(
+            array(
+                'database' => array(
+                    'adapter' => 'Pdo_Sqlite',
+                    'params'  => array(
+                        'dbname' => dirname(__FILE__) . '/../../../data/test.sqlite'
+                    )
+                )
+            )
+        );
+
+        $adapter = Zend_Db::factory($config->database);
+        $this->assertInstanceOf('\Zend_Db_Adapter_Pdo_Sqlite', $adapter);
+    }
 }
Add Zend_Db Test with Zend_Config
