Example #1
0
 public function testCweeks()
 {
     $this->out($this->_header(__FUNCTION__), true);
     $ret = TimeLib::cweeks('2004');
     $this->assertEquals(53, $ret);
     $ret = TimeLib::cweeks('2010');
     $this->assertEquals(52, $ret);
     $ret = TimeLib::cweeks('2006');
     $this->assertEquals(52, $ret);
     $ret = TimeLib::cweeks('2007');
     $this->assertEquals(52, $ret);
     /*
     for ($i = 1990; $i < 2020; $i++) {
     	$this->out(TimeLib::cweeks($i).BR;
     }
     */
 }