Fix HHVM / Couldn't find constant STRCOND_PRE
Fix DatabaseTest::testQueryThrowsException PHPUnit_Framework_MockObject_BadMethodCallException
Merge pull request #351 from SemanticMediaWiki/hhvm

Fix hhvm test failures