CRM-15011 - phpunit - Fixes for using normal phpunit

This PR focuses on cleanups that maintain support for Civi's bundled (modified) phpunit while also allowing standalone phpunit.

However: if you try to use standalone phpunit, it still doesn't *quite* work because packages/PHPUnit creates conflicts. One can work around that locally for now (until we switch).