public function testToday() { $el = new \Fnlive\Calendar\CCalendar(); $res = $el->today(); // Expected format "onsdag 09 mars 2016"; $today = new DateTime(); $exp = utf8_encode(strftime("%A %d %B %Y", strtotime($today->format('Y-m-d')))); $this->assertEquals($res, $exp, "Today date missmatch."); }