Skip to content
Permalink
Browse files

Correct API usage.

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 b3c201367d58ca9ee98d73c9503cf47a526a4f2b
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/TestCase/I18n/TimeTest.php
@@ -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();
@@ -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();

0 comments on commit b3c2013

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