Skip to content
Permalink
Browse files

update test to avoid de be dependent of ICU version

so its passes locally and on appveyor
  • Loading branch information...
antograssiot committed Jan 31, 2016
1 parent 764f283 commit 3e9121b11e4a042c1397f9dbfbbc1fc0bdc28ac8
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/TestCase/View/Helper/TimeHelperTest.php
@@ -449,8 +449,8 @@ public function testFormat()
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/10 13:59';
$result = $this->Time->format($time, \IntlDateFormatter::FULL);
$expected = 'jeudi 14 janvier 2010 13:59:28 UTC';
$this->assertTimeFormat($expected, $result);
}
@@ -496,8 +496,8 @@ public function testFormatTimeInstance()
public function assertTimeFormat($expected, $result)
{
return $this->assertEquals(
str_replace([',', '(', ')', ' at'], '', $expected),
str_replace([',', '(', ')', ' at'], '', $result)
str_replace([',', '(', ')', ' at', ' à'], '', $expected),
str_replace([',', '(', ')', ' at', ' à'], '', $result)
);
}

0 comments on commit 3e9121b

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