I wonder if there is a way to update the TestShell so we can re-use this. That might make it easier to override fewer PHPUnit internals.