@@ -18,17 +18,6 @@ public static function setUpBeforeClass(): void
1818 helper ('setting ' );
1919 }
2020
21- public static function provideAppDate (): iterable
22- {
23- return [
24- ['m/d/Y ' , 'g:i A ' , false , '01/15/2021 ' ],
25- ['m/d/Y ' , 'g:i A ' , true , '01/15/2021 3:32 PM ' ],
26- ['m/d/Y ' , 'H:i ' , true , '01/15/2021 15:32 ' ],
27- ['d/m/Y ' , 'g:i A ' , false , '15/01/2021 ' ],
28- ['M j, Y ' , 'g:i A ' , false , 'Jan 15, 2021 ' ],
29- ];
30- }
31-
3221 #[DataProvider('provideAppDate ' )]
3322 public function testAppDate (string $ format , string $ timeFormat , bool $ includeTime , string $ expected )
3423 {
@@ -40,4 +29,15 @@ public function testAppDate(string $format, string $timeFormat, bool $includeTim
4029
4130 $ this ->assertSame ($ expected , \app_date ($ time , $ includeTime ));
4231 }
32+
33+ public static function provideAppDate (): iterable
34+ {
35+ return [
36+ ['m/d/Y ' , 'g:i A ' , false , '01/15/2021 ' ],
37+ ['m/d/Y ' , 'g:i A ' , true , '01/15/2021 3:32 PM ' ],
38+ ['m/d/Y ' , 'H:i ' , true , '01/15/2021 15:32 ' ],
39+ ['d/m/Y ' , 'g:i A ' , false , '15/01/2021 ' ],
40+ ['M j, Y ' , 'g:i A ' , false , 'Jan 15, 2021 ' ],
41+ ];
42+ }
4343}
0 commit comments