2 DatePeriod: Test wrong recurrence parameter on __construct
6 new DatePeriod(new DateTime('yesterday'), new DateInterval('P1D'), 0);
7 } catch (Exception $exception) {
8 echo $exception->getMessage(), "\n";
12 new DatePeriod(new DateTime('yesterday'), new DateInterval('P1D'),-1);
13 } catch (Exception $exception) {
14 echo $exception->getMessage(), "\n";
18 DatePeriod::__construct(): The recurrence count '0' is invalid. Needs to be > 0
19 DatePeriod::__construct(): The recurrence count '-1' is invalid. Needs to be > 0