\Horde_Test_Factory_Db

Generates test database connectors.

Copyright 2011-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Summary

Methods
Properties
Constants
create()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

create()

create(array  $params = array()) : \Horde_Db_Adapter_Pdo_Sqlite

Create a connector to an in-memory sqlite DB.

Parameters

array $params

Additional options.

'migrations' - (array) An list of migrations that should be run.
               Each element must contain the keys 'migrationsPath'
               and 'schemaTableName'.
               DEFAULT: empty

Returns

\Horde_Db_Adapter_Pdo_Sqlite —

The DB adapter.