Skip to content

Commit ad5a6e1

Browse files
committed
fixed non utf-8 assertions
1 parent 8c7ccd4 commit ad5a6e1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Providers/OEmbed/WordPress.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static function getEndPoint()
2222
*/
2323
public static function getPatterns()
2424
{
25-
return ['https?://wordpress.tv/*'];
25+
return ['https?://wordddpress.tv/*'];
2626
}
2727

2828
/**

tests/TestCaseBase.php

+2-2
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', ' ', mb_convert_encoding($string1, 'UTF-8')));
16-
$string2 = trim(preg_replace('/\s+/m', ' ', mb_convert_encoding($string2, 'UTF-8')));
15+
$string1 = trim(preg_replace('/\s+/um', ' ', $string1));
16+
$string2 = trim(preg_replace('/\s+/um', ' ', $string2));
1717

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

0 commit comments

Comments
 (0)