Exemplo n.º 1
0
 function test_short_date()
 {
     $date = '2012-01-01 18:30:00';
     $time = strtotime($date);
     $expected = '<time class="shortdate" datetime="2012-01-01T18:30:00+00:00">Jan 1</time>';
     $this->assertEquals($expected, I18n::short_date($date));
     $this->assertEquals($expected, I18n::short_date($time));
 }