/**
  *
  * @dataProvider providerDateTimeInInterval
  */
 public function testDateTimeInInterval($start, $interval = "+5 days", $isInFuture)
 {
     $date = DateTimeProvider::dateTimeInInterval($start, $interval);
     $this->assertInstanceOf('\\DateTime', $date);
     $_interval = \DateInterval::createFromDateString($interval);
     $_start = new \DateTime($start);
     if ($isInFuture) {
         $this->assertGreaterThanOrEqual($_start, $date);
         $this->assertLessThanOrEqual($_start->add($_interval), $date);
     } else {
         $this->assertLessThanOrEqual($_start, $date);
         $this->assertGreaterThanOrEqual($_start->add($_interval), $date);
     }
 }