Fix HHVM / Couldn't find constant STRCOND_PRE
Fix DatabaseTest::testQueryThrowsException PHPUnit_Framework_MockObject_BadMethodCallException