/** * test getCountryTranslation * expected true */ public function testgetCountryTranslation() { $value = new Zend_Locale('de_DE'); $this->assertEquals('Deutschland', $value->getCountryTranslation('DE')); $this->assertEquals('Germany', $value->getCountryTranslation('DE', 'en')); $this->assertFalse($value->getCountryTranslation('xyz')); }
/** * test getCountryTranslation * expected true */ public function testgetCountryTranslation() { $value = new Zend_Locale('de_DE'); $this->assertEquals($value->getCountryTranslation('DE'), 'Deutschland', 'No country found'); $this->assertEquals($value->getCountryTranslation('DE', 'en'), 'Germany', 'No country found'); $this->assertFalse($value->getCountryTranslation('xyz'), 'Country Display should be false'); }