public function testMonth()
 {
     $month = new Month(new \DateTime('2013-01-01'), new Factory($this->options));
     foreach ($month as $week) {
         $this->assertInstanceOf('CalendR\\Test\\Fixtures\\Period\\Week', $week);
     }
     $days = $month->getDays();
     $this->assertInstanceOf('CalendR\\Test\\Fixtures\\Period\\Day', $days[0]);
     $this->assertInstanceOf('CalendR\\Test\\Fixtures\\Period\\Range', $month->getExtendedMonth());
 }
 public function testMonthTransmitToWeek()
 {
     $month = new Month(new \DateTime('2013-01-01'), Day::SUNDAY);
     $this->assertSame(Day::SUNDAY, $month->getPrevious()->getFirstWeekday());
     $this->assertSame(Day::SUNDAY, $month->getNext()->getFirstWeekday());
     $this->assertSame(Day::SUNDAY, $month->getExtendedMonth()->getFirstWeekday());
     foreach ($month as $week) {
         $this->assertSame(Day::SUNDAY, $week->getFirstWeekday());
     }
 }