@@ -103,7 +103,7 @@ public static function timeAgoProvider() {
103
103
array ('+1 week ' , '1 week ' ),
104
104
array ('+1 week 1 day ' , '1 week, 1 day ' ),
105
105
array ('+2 weeks 2 day ' , '2 weeks, 2 days ' ),
106
- array ('2007-9-24 ' , 'on 24/9 /07 ' ),
106
+ array ('2007-9-24 ' , 'on 9/24 /07 ' ),
107
107
array ('now ' , 'just now ' ),
108
108
);
109
109
}
@@ -198,7 +198,7 @@ public function testTimeAgoInWordsCustomStrings() {
198
198
'accuracy ' => array ('year ' => 'year ' ),
199
199
'end ' => '+2 months '
200
200
));
201
- $ expected = 'exactly on ' . date ('j/n /y ' , strtotime ('+4 months +2 weeks +3 days ' ));
201
+ $ expected = 'exactly on ' . date ('n/j /y ' , strtotime ('+4 months +2 weeks +3 days ' ));
202
202
$ this ->assertEquals ($ expected , $ result );
203
203
}
204
204
@@ -314,7 +314,7 @@ public function testTimeAgoInWordsNegativeValues() {
314
314
315
315
$ time = new Time ('-3 years -12 months ' );
316
316
$ result = $ time ->timeAgoInWords ();
317
- $ expected = 'on ' . $ time ->format ('j/n /y ' );
317
+ $ expected = 'on ' . $ time ->format ('n/j /y ' );
318
318
$ this ->assertEquals ($ expected , $ result );
319
319
320
320
$ time = new Time ('-1 month -1 week -6 days ' );
@@ -327,7 +327,7 @@ public function testTimeAgoInWordsNegativeValues() {
327
327
$ result = $ time ->timeAgoInWords (
328
328
array ('accuracy ' => array ('year ' => 'year ' ))
329
329
);
330
- $ expected = 'on ' . $ time ->format ('j/n /y ' );
330
+ $ expected = 'on ' . $ time ->format ('n/j /y ' );
331
331
$ this ->assertEquals ($ expected , $ result );
332
332
333
333
$ time = new Time ('-13 months -5 days ' );
0 commit comments