/** * test getCalendarFalse * expected false */ public function testgetCalendarDisplayFalse() { $value = new Zend_Locale(); $list = $value->getCalendarDisplay('xyz'); $this->assertFalse(is_string($list), 'Calendar Display should be false'); }
/** * test getCalendarDisplay * expected true */ public function testgetCalendarDisplay() { $value = new Zend_Locale('de'); $list = $value->getCalendarDisplay('chinese'); $this->assertEquals($list, 'Chinesischer Kalender', 'Calendar Display not returned'); $list = $value->getCalendarDisplay('chinese', 'en'); $this->assertEquals($list, 'Chinese Calendar', 'Calendar Display not returned'); $list = $value->getCalendarDisplay('xyz'); $this->assertFalse(is_string($list), 'Calendar Display should be false'); }