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