Skip to content

Commit

Permalink
Correct API usage.
Browse files Browse the repository at this point in the history
Don't use deprecated properties, and use en-US as it is more stable than
en-CA.
  • Loading branch information
markstory committed Jun 3, 2016
1 parent cf45097 commit b3c2013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/I18n/TimeTest.php
Expand Up @@ -553,7 +553,7 @@ public function testI18nFormatWithDefaultOutputTimezone($class)
{
$time = new $class('Thu Jan 14 13:59:28 2010');

$class::$defaultLocale = 'en-CA';
$class::setDefaultLocale('en-US');
$class::setDefaultOutputTimezone('America/Vancouver');

$result = $time->i18nFormat();
Expand All @@ -565,7 +565,7 @@ public function testI18nFormatWithDefaultOutputTimezone($class)
$this->assertTimeFormat($expected, $result);


$class::$defaultLocale = 'de-DE';
$class::setDefaultLocale('de-DE');
$class::setDefaultOutputTimezone('Europe/Berlin');

$result = $time->i18nFormat();
Expand Down

0 comments on commit b3c2013

Please sign in to comment.