This is a medium to long term perspective. Our unit tests should not require MediaWiki to be installed.
It may or may not need a database to connect to (though to a large degree that should be mocked). But that can be passed as command line arguments. Anything else should be constructed/injected by the test or mocked.