/** * test getRegionDisplayFalse * expected false */ public function testgetRegionDisplayFalse() { $value = new Zend_Locale(); $list = $value->getRegionDisplay('xyz'); $this->assertFalse(is_string($list), 'Region Display should be false'); }
/** * test getRegionDisplay * expected true */ public function testgetRegionDisplay() { $value = new Zend_Locale('de_AT'); $list = $value->getRegionDisplay('DE'); $this->assertEquals($list, 'Deutschland', 'Region Display not returned'); $list = $value->getRegionDisplay('DE', 'en'); $this->assertEquals($list, 'Germany', 'Region Display not returned'); $list = $value->getRegionDisplay('xyz'); $this->assertFalse(is_string($list), 'Region Display should be false'); }