Skip to content
Permalink
Browse files

add a failing test to reproduce the issue

  • Loading branch information...
antograssiot committed Jan 31, 2016
1 parent b081462 commit 0f4aa4100e17598c3d1c2539c0e72e5662c200d4
Showing with 9 additions and 0 deletions.
  1. +9 −0 tests/TestCase/View/Helper/TimeHelperTest.php
@@ -431,6 +431,15 @@ public function testFormat()
$result = $this->Time->format('invalid date', null, 'Date invalid');
$expected = 'Date invalid';
$this->assertEquals($expected, $result);
\Cake\I18n\I18n::locale('fr-FR');
Time::$defaultLocale = 'fr-FR';
$time = new \Cake\I18n\FrozenTime('Thu Jan 14 13:59:28 2010');
$result = $this->Time->format($time);
$expected = '14/01/2010 13:59';
$this->assertTimeFormat($expected, $result);
\Cake\I18n\I18n::locale('en-US');
}
/**

0 comments on commit 0f4aa41

Please sign in to comment.
You can’t perform that action at this time.