private function createProvider(MockHttpClient
$httpClient = null, string
$endpoint = null, XliffFileDumper
$dumper = null, bool
$isFallbackLocaleEnabled = false
): ProviderInterface
{ return new PhraseProvider( $httpClient ??
$this->
getHttpClient(),
$this->
getLogger(),
$this->
getLoader(),
$dumper ??
$this->
getXliffFileDumper(),
$this->
getCache(),
$this->
getDefaultLocale(),
$endpoint ??
$this->
getEndpoint(),
$this->
getReadConfig(),
$this->
getWriteConfig(),
$isFallbackLocaleEnabled,
);
} private function getHttpClient(): MockHttpClient
{ return $this->httpClient ??=
new MockHttpClient();
} private function getLogger(): MockObject&LoggerInterface
{