private function formatMonths($months, $format = 'F') { $formatted = array(); foreach ($months as $i => $month) { $timestamp = $this->date->makeTime(0, 0, 0, $month, 1, null); $formatted[$i] = $this->date->format($format, $timestamp); } return $formatted; }
/** * Test makeTime function in gregorian */ public function testMakeTime() { $this->assertEquals($this->datetime->makeTime(), mktime()); }