public function testCallableNotReturningProperIntervals() { $day = new SpecialDay(Days::MONDAY, function (\DateTime $date) { }); $day->getClosestOpeningTimeBefore(new Time('15', '00'), new \DateTime()); }