@@ -371,15 +375,15 @@ public function providerTestInvalidDates() {
returnarray(
// Test for invalid month names when we are using a short version
// of the month.
array('23 abc 2012',NULL,'d M Y',"23 abc 2012 contains an invalid month name and did not produce errors."),
array('23 abc 2012',NULL,'d M Y',"23 abc 2012 contains an invalid month name and did not produce errors.",\InvalidArgumentException::class),
// Test for invalid hour.
array('0000-00-00T45:30:00',NULL,'Y-m-d\TH:i:s',"0000-00-00T45:30:00 contains an invalid hour and did not produce errors."),
array('0000-00-00T45:30:00',NULL,'Y-m-d\TH:i:s',"0000-00-00T45:30:00 contains an invalid hour and did not produce errors.",\UnexpectedValueException::class),
// Test for invalid day.
array('0000-00-99T05:30:00',NULL,'Y-m-d\TH:i:s',"0000-00-99T05:30:00 contains an invalid day and did not produce errors."),
array('0000-00-99T05:30:00',NULL,'Y-m-d\TH:i:s',"0000-00-99T05:30:00 contains an invalid day and did not produce errors.",\UnexpectedValueException::class),
// Test for invalid month.
array('0000-75-00T15:30:00',NULL,'Y-m-d\TH:i:s',"0000-75-00T15:30:00 contains an invalid month and did not produce errors."),
array('0000-75-00T15:30:00',NULL,'Y-m-d\TH:i:s',"0000-75-00T15:30:00 contains an invalid month and did not produce errors.",\UnexpectedValueException::class),
// Test for invalid year.
array('11-08-01T15:30:00',NULL,'Y-m-d\TH:i:s',"11-08-01T15:30:00 contains an invalid year and did not produce errors."),
array('11-08-01T15:30:00',NULL,'Y-m-d\TH:i:s',"11-08-01T15:30:00 contains an invalid year and did not produce errors.",\UnexpectedValueException::class),
);
}
...
...
@@ -397,17 +401,17 @@ public function providerTestInvalidDates() {
publicfunctionproviderTestInvalidDateArrays(){
returnarray(
// One year larger than the documented upper limit of checkdate().