Exemple #1
0
 /**
  * TimeLibTest::testMonth()
  *
  * @return void
  */
 public function testMonth()
 {
     $this->out($this->_header(__FUNCTION__), true);
     $ret = TimeLib::month('11');
     $this->assertEquals(__('November'), $ret);
     $ret = TimeLib::month(1);
     $this->assertEquals(__('January'), $ret);
     $ret = TimeLib::month(2, true, array('appendDot' => true));
     $this->assertEquals(__('Feb') . '.', $ret);
     $ret = TimeLib::month(5, true, array('appendDot' => true));
     $this->assertEquals(__('May'), $ret);
 }
 /**
  * TimeLibTest::testMonth()
  *
  * @return void
  */
 public function testMonth()
 {
     //$this->out($this->_header(__FUNCTION__), true);
     $ret = TimeLib::month('11');
     $this->assertEquals(__d('tools', 'November'), $ret);
     $ret = TimeLib::month(1);
     $this->assertEquals(__d('tools', 'January'), $ret);
     $ret = TimeLib::month(2, true, ['appendDot' => true]);
     $this->assertEquals(__d('tools', 'Feb') . '.', $ret);
     $ret = TimeLib::month(5, true, ['appendDot' => true]);
     $this->assertEquals(__d('tools', 'May'), $ret);
 }