phpunit: Make getResourceLoaderContext() more extendable