/** * test getTerritoryTranslation * expected true */ public function testgetTerritoryTranslation() { $value = new Zend_Locale('de_DE'); $this->assertEquals('Afrika', $value->getTerritoryTranslation('002')); $this->assertEquals('Africa', $value->getTerritoryTranslation('002', 'en')); $this->assertFalse($value->getTerritoryTranslation('xyz')); $this->assertTrue(is_string($value->getTerritoryTranslation('002', 'auto'))); }
/** * test getTerritoryTranslation * expected true */ public function testgetTerritoryTranslation() { $value = new Zend_Locale('de_DE'); $this->assertEquals($value->getTerritoryTranslation('002'), 'Afrika', 'No territory found'); $this->assertEquals($value->getTerritoryTranslation('002', 'en'), 'Africa', 'No territory found'); $this->assertFalse($value->getTerritoryTranslation('xyz'), 'Territory Display should be false'); }