/** * TimeTest::testMonth() * * @return void */ public function testMonthName() { //$this->out($this->_header(__FUNCTION__), true); $ret = $this->Time->monthName('11'); $this->assertEquals(__d('tools', 'November'), $ret); $ret = $this->Time->monthName(1); $this->assertEquals(__d('tools', 'January'), $ret); $ret = $this->Time->monthName(2, true, ['appendDot' => true]); $this->assertEquals(__d('tools', 'Feb') . '.', $ret); $ret = $this->Time->monthName(5, true, ['appendDot' => true]); $this->assertEquals(__d('tools', 'May'), $ret); }