<?php
return array(
    'cdli-twostagesignup' => array(
        'test_database_schema_up'   => 'schema_up.mysql.sql',
        'test_database_schema_down' => 'schema_down.sql',
    ),
    'service_manager' => array(
        'factories' => array(
            'Zend\Db\Adapter\Adapter' => function ($sm) {
                return new Zend\Db\Adapter\Adapter(array(
                    'driver'    => 'pdo',
                    'dsn'       => 'mysql:dbname=travis_test;host=localhost',
                    'database'  => 'travis_test',
                    'username'  => 'root',
                    'password'  => '',
                    'hostname'  => 'localhost',
                ));
            },
        ),
    ),
);

<?php
return array(
    'cdli-twostagesignup' => array(
        'test_database_schema_up'   => 'schema_up.mysql.sql',
        'test_database_schema_down' => 'schema_down.sql',
    ),
    'service_manager' => array(
        'factories' => array(
            'Zend\Db\Adapter\Adapter' => function ($sm) use ($dbParams) {
                return new Zend\Db\Adapter\Adapter(array(
                    'driver'    => 'pdo',
                    'dsn'       => 'mysql:dbname=travis_test;host=localhost',
                    'database'  => 'travis_test',
                    'username'  => 'root',
                    'password'  => '',
                    'hostname'  => 'localhost',
                ));
            },
        ),
    ),
);

--- 
+++ 
@@ -6,7 +6,7 @@
     ),
     'service_manager' => array(
         'factories' => array(
-            'Zend\Db\Adapter\Adapter' => function ($sm) use ($dbParams) {
+            'Zend\Db\Adapter\Adapter' => function ($sm) {
                 return new Zend\Db\Adapter\Adapter(array(
                     'driver'    => 'pdo',
                     'dsn'       => 'mysql:dbname=travis_test;host=localhost',
Remove unnecessary variable from SM factory closure ($dbParams)
