Skip to content

Commit

Permalink
See if german dates don't vary with intl versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 11, 2015
1 parent b160b2c commit d6c4d02
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/TestCase/I18n/DateTest.php
Expand Up @@ -64,10 +64,6 @@ public function testI18nFormat()
$expected = '1/14/10';
$this->assertEquals($expected, $result);

$result = $time->i18nFormat(\IntlDateFormatter::FULL, null, 'es-ES');
$expected = 'jueves, 14 de enero de 2010, 0:00:00 (GMT)';
$this->assertEquals($expected, $result);

$format = [\IntlDateFormatter::NONE, \IntlDateFormatter::SHORT];
$result = $time->i18nFormat($format);
$expected = '12:00 AM';
Expand All @@ -82,8 +78,8 @@ public function testI18nFormat()
$expected = 'jeudi 14 janvier 2010 00:00:00 UTC';
$this->assertEquals($expected, $result);

$result = $time->i18nFormat(\IntlDateFormatter::FULL, null, 'es-ES');
$expected = 'jueves, 14 de enero de 2010, 0:00:00 (GMT)';
$result = $time->i18nFormat(\IntlDateFormatter::FULL, null, 'de-DE');
$expected = 'Donnerstag, 14. Januar 2010 um 00:00:00 GMT';
$this->assertEquals($expected, $result, 'Default locale should not be used');
}

Expand Down

0 comments on commit d6c4d02

Please sign in to comment.