コード例 #1
0
ファイル: UnitTests.php プロジェクト: PublicityPort/OpenCATS
 function testGetMonthName()
 {
     $this->assertIdentical(DateUtility::getMonthName(CALENDAR_MONTH_JANUARY), 'January');
     $this->assertIdentical(DateUtility::getMonthName(CALENDAR_MONTH_FEBRUARY), 'February');
     $this->assertIdentical(DateUtility::getMonthName(CALENDAR_MONTH_MARCH), 'March');
     $this->assertIdentical(DateUtility::getMonthName(CALENDAR_MONTH_APRIL), 'April');
     $this->assertIdentical(DateUtility::getMonthName(CALENDAR_MONTH_MAY), 'May');
     $this->assertIdentical(DateUtility::getMonthName(CALENDAR_MONTH_JUNE), 'June');
     $this->assertIdentical(DateUtility::getMonthName(CALENDAR_MONTH_JULY), 'July');
     $this->assertIdentical(DateUtility::getMonthName(CALENDAR_MONTH_AUGUST), 'August');
     $this->assertIdentical(DateUtility::getMonthName(CALENDAR_MONTH_SEPTEMBER), 'September');
     $this->assertIdentical(DateUtility::getMonthName(CALENDAR_MONTH_OCTOBER), 'October');
     $this->assertIdentical(DateUtility::getMonthName(CALENDAR_MONTH_NOVEMBER), 'November');
     $this->assertIdentical(DateUtility::getMonthName(CALENDAR_MONTH_DECEMBER), 'December');
 }