/** @test */ public function excludeStartDate() { $range = new DateRange([$this->start, $this->end]); $range->excludeStartDate(); $this->assertFalse($range->contains('2015-12-01')); $this->assertTrue($range->contains('2015-12-02')); // dirty test .. (check the first value only) foreach ($range as $d) { $this->assertEquals(new DateTime('2015-12-02'), $d); break; } }