Issue #3026414 by alexpott, Fabianx: Add tests for PharExtensionInterceptor for invocation from a CLI command