Skip to content
Aleksandar Jovanovic edited this page Apr 5, 2015 · 2 revisions

DbMockLibrary\Mongo

Mongo extends AbstractImplementation class and is therefore singleton. It provides wrapper for Mongo implementation of the library. Usage examples

For additional help, look at the tests, additional input scenarios are tested. initMongo(array $initialData, $database, array $dependencies)

Initializes connection to Mongo database as well as dummy data and dependency data.

Mongo::initMongo(['collection' => 'row' => ['field' => 1]], 'foo', []);

Clone this wiki locally