function testOrderedWeekdaysShort() { $weekdayNames = array(0 => 'Sun', 1 => 'Mon', 2 => 'Tue', 3 => 'Wed', 4 => 'Thu', 5 => 'Fri', 6 => 'Sat'); $Textual = new Calendar_Decorator_Textual($this->mockcal); $this->assertEqual($weekdayNames, $Textual->orderedWeekdays('short')); }
function testOrderedWeekdaysShort() { $weekdayNames = array(0 => 'Sun', 1 => 'Mon', 2 => 'Tue', 3 => 'Wed', 4 => 'Thu', 5 => 'Fri', 6 => 'Sat'); $nShifts = CALENDAR_FIRST_DAY_OF_WEEK; while ($nShifts-- > 0) { $day = array_shift($weekdayNames); array_push($weekdayNames, $day); } $Textual = new Calendar_Decorator_Textual($this->mockcal); $this->assertEqual($weekdayNames, $Textual->orderedWeekdays('short')); }