We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78fad3c commit b949d48Copy full SHA for b949d48
tests/RephraseTextTest.php
@@ -53,6 +53,19 @@ public function testBusinessStyle(?ClientInterface $httpClient)
53
$this->checkSanityOfImprovements($input, $result);
54
}
55
56
+ /**
57
+ * @dataProvider provideHttpClient
58
+ */
59
+ public function testConfiguredDeepLClient(?ClientInterface $httpClient)
60
+ {
61
+ $deeplClient = $this->makeDeeplClient([
62
+ DeepLClientOptions::HTTP_CLIENT => $httpClient,
63
+ DeepLClientOptions::DEFAULT_MAX_RETRIES => 2
64
+ ]);
65
+ $result = $deeplClient->rephraseText(DeepLTestBase::EXAMPLE_TEXT['en'], 'en-GB');
66
+ $this->checkSanityOfImprovements(DeepLTestBase::EXAMPLE_TEXT['en'], $result);
67
+ }
68
+
69
private function checkSanityOfImprovements(
70
string $inputText,
71
RephraseTextResult $result,
0 commit comments