j4mie/idiorm — pull request #143 by JoelMarcey (2013-08-28 14:40:44+00:00)
Title: Update bootstrap.php so the tests can run on both HHVM and Zend

PDOStatement does not have a direct constructor (i.e., __construct). Newing up a PDOStatement or subclass (e.g., MockPDOStatement) does technically work in Zend, but HHVM throws. A correct way to have the code currently structured in bootstrap.php work correctly on both Zend and HHVM is provide a default constructor and execute method in MockPDOStatement. It would probably best long term to avoid newing up a PDOStatement and create the queries another way. But this works for now.