Skip to content

Commit 8c7ccd4

Browse files
committed
try to fix fail test
1 parent 846f943 commit 8c7ccd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/TestCaseBase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ abstract class TestCaseBase extends PHPUnit_Framework_TestCase
1212
*/
1313
public function assertString($string1, $string2)
1414
{
15-
$string1 = trim(preg_replace('/\s+/m', ' ', $string1));
16-
$string2 = trim(preg_replace('/\s+/m', ' ', $string2));
15+
$string1 = trim(preg_replace('/\s+/m', ' ', mb_convert_encoding($string1, 'UTF-8')));
16+
$string2 = trim(preg_replace('/\s+/m', ' ', mb_convert_encoding($string2, 'UTF-8')));
1717

1818
$this->assertSame($string1, $string2);
1919
}

0 commit comments

Comments
 (0)