@@ -48,7 +48,7 @@ public static function provideValidDateTime(): array
4848 'valid with negative value ' => [true , '-2001-10-26T21:32:52 ' ],
4949 'valid with subseconds ' => [true , '2001-10-26T21:32:52.12679 ' ],
5050 'valid with more than four digit year ' => [true , '-22001-10-26T21:32:52+02:00 ' ],
51- 'valid with sub-seconds ' => [true , '2001-10-26T21:32:52.12679 ' ],
51+ 'valid with up to twelve sub-seconds ' => [true , '2001-10-26T21:32:52.126798764382 ' ],
5252 ];
5353 }
5454
@@ -62,9 +62,12 @@ public static function provideInvalidDateTime(): array
6262 'missing time ' => [false , '2001-10-26 ' ],
6363 'missing second ' => [false , '2001-10-26T21:32 ' ],
6464 'hour out of range ' => [false , '2001-10-26T25:32:52+02:00 ' ],
65+ 'hour twenty-four ' => [false , '2001-10-26T24:32:52+02:00 ' ],
6566 'year 0000 ' => [false , '0000-10-26T25:32:52+02:00 ' ],
6667 'prefixed zero ' => [false , '02001-10-26T25:32:52+02:00 ' ],
6768 'wrong format ' => [false , '01-10-26T21:32 ' ],
69+ 'too many sub-seconds ' => [false , '2001-10-26T21:32:52.1267987643821 ' ],
70+ 'sub-seconds ending with zero ' => [false , '2001-10-26T21:32:52.12670 ' ],
6871 ];
6972 }
7073}
0 commit comments