Mocking PDO and PDOStatement instances for PHP Unit Testing

The real hurdles unit testing in php are installation of a test framework, and stubbing common data objects. I made a quick demo of how I was able to mock the PDO and PDOStatement classes for testing a simple php class.

Also tagged , , , ,