How to test MongoDB Repositories using PHPUnit & Mongounit

Published: Friday, January 16th, 2015 by Chris Taylor

A repository is a way of making a standard interface into your database from your application. In MVC terms, it’s the Model. They should all extend a base repository which defines how they should interact with the DB. In this example it will be MongoDB. They should also all implement an interface which declares functions […]