Switch out phpunit mocking for mockery and fix issue with BSON tests