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())); }
public function testGetToday() { $day = Day::getToday(); $this->assertInstanceOf('Hrevert\\Day\\Day', $day); }