Use phpunit 3.7 for compat with mediawiki for travis

Until https://gerrit.wikimedia.org/r/#/c/131488/ is merged,
which will allow phpunit 4.1 to work.
Merge pull request #19 from wmde/travis

Use phpunit 3.7 for compat with mediawiki for travis
Update construction of QueryEngine services after DBAL migration
Fix various failing test cases
Better validation of int params, added tests for those
Remove dead code
Correctly handle MW's db table prefixes
Merge pull request #23 from wmde/fixTests

Fix various failing test cases
Remove calls to removed APITestSetup::tearDown
Merge pull request #24 from wmde/removeTearDown

Remove calls to removed APITestSetup::tearDown
Merge branch 'master' into dbal

Conflicts:
	src/ByPropertyValueEntityFinder.php
	src/DIC/WikibaseQueryBuilder.php
	tests/System/Api/EntitiesByPropertyValueApiTest.php
	tests/System/Api/PermissionsTest.php
Adapt to removal of EntityContent::save
Merge pull request #25 from wmde/entityContentSave

Adapt to removal of EntityContent::save
Add test to verify the connection has the expected tables
Correct SQlite db initialization
Actually reset extension on setting builder
Do not use temporary tables for tests

DBAL does not share MediaWiki's db connection, so temporary tables would not
show up for us.
Ignore SQLite failures for now
Merge pull request #20 from wmde/dbal

Update construction of QueryEngine services after DBAL migration
Use Wikibase's snakview for the SimpleQuery special page

Fixes bug 55593.