public static function exceptionData(): \Generator
{ yield 'consume 4 and expect 3' =>
[4, 3
];
yield 'consume 2, then consoume 2 and expect 1' =>
[2, 1, 2
];
yield 'consume 3, then consume 2 and expect 1' =>
[2, 1, 3
];
} private function intervalToSeconds(string
$interval): int
{ return TimeUtil::
dateIntervalToSeconds((new \
DateTimeImmutable())->
diff(new \
DateTimeImmutable('+' .
$interval)));
}}