f3ath/lazypdo

LazyPDO is a wrapper over PHP's standard PDO class. It postpones instantiating original PDO class until one is really needed. Also it can be (un)serialized. The main goal of this class is to allow you to mock PDO instances in your unit tests.

Installs: 16 384

Dependents: 0

Stars: 2

Watchers: 2

Forks: 2

Language: PHP

0.0.1 2014-02-16 23:14 UTC

README

LazyPDO is a wrapper over PHP's standard PDO class. It postpones instantiating original PDO class until one is really needed. Also it can be (un)serialized.

The main goal of this class is to allow mocking of PDO instances in unit tests.