public function testGetTranslation() { $content = json_decode(file_get_contents('tests/Json/shardstatus.euw.json'), true); $shardStatus = new ShardStatus($content); $service = $shardStatus->getService("Game"); $incident = $service->incidents[0]; $message = $incident->updates[0]; $translation = $message->getTranslationByLocale('de_DE'); $this->assertTrue($translation instanceof \LeagueWrap\Dto\Translation); $this->assertTrue($translation->locale == "de_DE"); }