Permalink
Browse files

Merge pull request #627 from dereuromark/2.2-utf8-test-cases

2.2 utf8 test cases
  • Loading branch information...
2 parents 333ea29 + ba8a3c5 commit 1876b2f5796dd947d78bf2eddd76d52fddcf4a86 @markstory markstory committed Apr 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/Utility/CakeTimeTest.php
@@ -810,7 +810,7 @@ public function testI18nFormat() {
$this->assertEquals($expected, $result);
$result = $this->Time->i18nFormat($time, '%c');
- $expected = 'jue 14 ene 2010 13:59:28 ' . strftime('%Z', $time);
+ $expected = 'jue 14 ene 2010 13:59:28 ' . utf8_encode(strftime('%Z', $time));
$this->assertEquals($expected, $result);
$result = $this->Time->i18nFormat($time, 'Time is %r, and date is %x');
@@ -824,7 +824,7 @@ public function testI18nFormat() {
$this->assertEquals($expected, $result);
$result = $this->Time->i18nFormat($time, '%c');
- $expected = 'mié 13 ene 2010 13:59:28 ' . strftime('%Z', $time);
+ $expected = 'mié 13 ene 2010 13:59:28 ' . utf8_encode(strftime('%Z', $time));
$this->assertEquals($expected, $result);
$result = $this->Time->i18nFormat($time, 'Time is %r, and date is %x');

0 comments on commit 1876b2f

Please sign in to comment.