diff options
author | Joel Marcey <[email protected]> | 2013-08-28 07:39:28 -0700 |
---|---|---|
committer | Joel Marcey <[email protected]> | 2013-08-28 07:39:28 -0700 |
commit | 39825daf7003600c221bacf73210178fd1189080 (patch) | |
tree | 978629e8ff7bc48adb6a665b5639fb8c748a1abc /README.markdown | |
parent | 01112f5ac14b24aed8038cc0ae99801007ef26b8 (diff) |
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.
Diffstat (limited to 'README.markdown')
0 files changed, 0 insertions, 0 deletions