public function testConstructor()
 {
     $days = new DayCollection([Day::SUNDAY(), Day::MONDAY()]);
     $this->assertCount(2, $days);
     $this->assertTrue($days->contains(Day::SUNDAY()));
     $this->assertTrue($days->contains(Day::MONDAY()));
 }
Example #2
0
 public function testGetToday()
 {
     $day = Day::getToday();
     $this->assertInstanceOf('Hrevert\\Day\\Day', $day);
 }