예제 #1
0
 /**
  * Retourne le jour du mois
  * @param string $format 'long' ou 'short'
  * @return string
  * @access public
  */
 public function thisDayName($format = 'long')
 {
     $day = Calendar_Decorator_Textual::thisDayName();
     $dayArray = Calendar_Decorator_Textual::weekdayNames();
     $d = array_keys($dayArray, $day);
     switch ($format) {
         case 'long':
             return $this->longWeekDayNames[$d[0]];
             break;
         case 'short':
             return $this->shortWeekDayNames[$d[0]];
     }
 }
예제 #2
0
 function testThisDayNameShort()
 {
     $Textual = new Calendar_Decorator_Textual($this->mockcal);
     $this->assertEqual('Wed', $Textual->thisDayName('short'));
 }