Skip to content

Commit

Permalink
update test to avoid de be dependent of ICU version
Browse files Browse the repository at this point in the history
so its passes locally and on appveyor
  • Loading branch information
antograssiot committed Jan 31, 2016
1 parent 764f283 commit 3e9121b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/TestCase/View/Helper/TimeHelperTest.php
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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)
);
}

Expand Down

0 comments on commit 3e9121b

Please sign in to comment.