Skip to content

Commit d929c84

Browse files
author
Zsombor Franczia
committed
Added a test case for special Unicode characters (emoji with skin tone)
1 parent fc5d3c7 commit d929c84

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/TranslationTest.php

+8
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ public function testTranslationEquality()
1919
$this->assertEquals($resultOne, $resultTwo, 'გამარჯობა');
2020
}
2121

22+
public function testUTF16Translation()
23+
{
24+
$resultOne = TranslateClient::translate('en', 'de', 'yes 👍🏽');
25+
$resultTwo = $this->tr->setSource('en')->setTarget('de')->translate('yes 👍🏽');
26+
27+
$this->assertEquals($resultOne, $resultTwo, 'ja 👍🏽');
28+
}
29+
2230
public function testArrayTranslation()
2331
{
2432
$this->tr->setSource('en')->setTarget('ka');

0 commit comments

Comments
 (0)