예제 #1
0
 public function testDefaultDayIsMonday()
 {
     $calendar = new Calendar();
     $this->assertSame(Day::MONDAY, $calendar->getYear(2013)->getFirstWeekday());
     $this->assertSame(Day::MONDAY, $calendar->getMonth(2013, 1)->getFirstWeekday());
     $this->assertSame(Day::MONDAY, $calendar->getWeek(2013, 1)->getFirstWeekday());
     $this->assertSame(Day::MONDAY, $calendar->getDay(2013, 1, 1)->getFirstWeekday());
     $range = new Range(new \DateTime(), new \DateTime('+3 days'));
     $this->assertSame(Day::MONDAY, $range->getFirstWeekday());
 }
예제 #2
0
 /**
  * @expectedException \CalendR\Period\Exception\NotImplemented
  */
 public function testGetDateInterval()
 {
     Range::getDateInterval();
 }