/** * Test the date between start and end dates in the instance */ public function testContains() { $period = CarbonPeriod::lastWeek(); $date = Carbon::parse('last week +1 day'); $this->assertTrue($period->contains($date)); }