@@ -117,4 +117,23 @@ function it_humanizes_precise_difference_between_dates_for_de_locale()
117
117
$ this ->preciseDifference (new \DateTime ($ example [0 ]), new \DateTime ($ example [1 ]), 'de ' )->shouldReturn ($ example [2 ]);
118
118
}
119
119
}
120
+
121
+
122
+ function it_humanizes_precise_difference_between_dates_for_tr_locale ()
123
+ {
124
+ $ examples = array (
125
+ array ("2014-04-26 13:00:00 " , "2014-04-26 12:58:15 " , '1 dakika, 45 saniye önce ' ),
126
+ array ("2014-04-26 13:00:00 " , "2014-04-26 11:20:00 " , '1 saat, 40 dakika önce ' ),
127
+ array ("2014-04-26 13:00:00 " , "2014-04-27 13:15:00 " , '1 gün, 15 dakika sonra ' ),
128
+ array ("2014-04-26 13:00:00 " , "2014-05-03 15:00:00 " , '7 gün, 2 saat sonra ' ),
129
+ array ("2014-04-26 13:00:00 " , "2015-04-28 17:00:00 " , '1 yıl, 2 gün, 4 saat sonra ' ),
130
+ array ("2014-04-26 13:00:00 " , "2014-04-28 23:00:00 " , '2 gün, 10 saat sonra ' ),
131
+ array ("2014-04-26 13:00:00 " , "2014-04-25 11:20:00 " , '1 gün, 1 saat, 40 dakika önce ' ),
132
+ array ("2014-04-26 13:00:00 " , "2016-04-27 13:00:00 " , '2 yıl, 1 gün sonra ' ),
133
+ );
134
+
135
+ foreach ($ examples as $ example ) {
136
+ $ this ->preciseDifference (new \DateTime ($ example [0 ]), new \DateTime ($ example [1 ]), 'tr ' )->shouldReturn ($ example [2 ]);
137
+ }
138
+ }
120
139
}
0 commit comments