Skip to content

Commit

Permalink
Add array translation test for static call
Browse files Browse the repository at this point in the history
  • Loading branch information
Stichoza committed Oct 28, 2015
1 parent 72e5222 commit 8159e14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/TranslationTest.php
Expand Up @@ -27,9 +27,14 @@ public function testArrayTranslation()
$resultFish = $this->tr->translate('fish');

$arrayResults = $this->tr->translate(['cat', 'dog', 'fish']);
$arrayZesults = TranslateClient::translate('en', 'ka', ['cat', 'dog', 'fish']);

$this->assertEquals($resultCat, $arrayResults[0], 'კატა');
$this->assertEquals($resultDog, $arrayResults[1], 'ძაღლი');
$this->assertEquals($resultFish, $arrayResults[2], 'თევზი');

$this->assertEquals($resultCat, $arrayZesults[0], 'კატა');
$this->assertEquals($resultDog, $arrayZesults[1], 'ძაღლი');
$this->assertEquals($resultFish, $arrayZesults[2], 'თევზი');
}
}

0 comments on commit 8159e14

Please sign in to comment.