I tried Elgg_Globals but found it impossible to mock multiple methods because of the way it used `__call()`. Let's keep thinking about this.