@@ -42,7 +42,7 @@ public function testMultipleText(?ClientInterface $httpClient)
4242 /**
4343 * @dataProvider provideHttpClientAndModelType
4444 */
45- public function testModelType (?ClientInterface $ httpClient , string $ modelTypeArgName, string $ expectedModelType )
45+ public function testModelType (?ClientInterface $ httpClient , string $ modelTypeArgName )
4646 {
4747 $ translator = $ this ->makeTranslator ([TranslatorOptions::HTTP_CLIENT => $ httpClient ]);
4848 $ input = [DeepLTestBase::EXAMPLE_TEXT ['en ' ]];
@@ -54,7 +54,7 @@ public function testModelType(?ClientInterface $httpClient, string $modelTypeArg
5454 );
5555 $ this ->assertEquals (DeepLTestBase::EXAMPLE_TEXT ['de ' ], $ result [0 ]->text );
5656 $ this ->assertEquals (mb_strlen ($ input [0 ]), $ result [0 ]->billedCharacters );
57- $ this ->assertEquals ( $ expectedModelType , $ result [0 ]->modelTypeUsed );
57+ $ this ->assertNotNull ( $ result [0 ]->modelTypeUsed );
5858 }
5959
6060 /**
@@ -71,7 +71,7 @@ public function testMixedDirectionText(?ClientInterface $httpClient)
7171
7272 $ ar_ignore_part = "<ignore>يجب تجاهل هذا الجزء.</ignore> " ;
7373 $ en_sentence_with_ar_ignore_part =
74- "<p>This is a <b>short</b> <i>sentence</i>. $ ar_ignore_part This is another sentence. " ;
74+ "<p>This is a <b>short</b> <i>sentence</i>.</p> $ ar_ignore_part This is another sentence. " ;
7575
7676 $ en_ignore_part = "<ignore>This part should be ignored.</ignore> " ;
7777 $ ar_sentence_with_en_ignore_part = "<p>هذه <i>جملة</i> <b>قصيرة</b>. $ en_ignore_part هذه جملة أخرى.</p> " ;
0 commit comments