17 $objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
31 $this->assertEquals($resultIconv, $this->model->filter($testString));
33 $this->assertEquals(
$result, $this->model->filter($testString));
42 $isIconv =
'"libiconv"' == ICONV_IMPL;
44 [
'test',
'test',
'test', $isIconv],
45 [
'привет мир',
'privet mir',
'privet mir', $isIconv],
47 'Weiß, Goldmann, Göbel, Weiss, Göthe, Goethe und Götz',
48 'Weiss, Goldmann, Gobel, Weiss, Gothe, Goethe und Gotz',
49 'Weiss, Goldmann, Gobel, Weiss, Gothe, Goethe und Gotz',
53 '❤ ☀ ☆ ☂ ☻ ♞ ☯ ☭ ☢ € → ☎ ❄ ♫ ✂ ▷ ✇ ♎ ⇧ ☮',
54 '❤ ☀ ☆ ☂ ☻ ♞ ☯ ☭ ☢ € → ☎ ❄ ♫ ✂ ▷ ✇ ♎ ⇧ ☮',
58 [
'™',
'tm',
'tm', $isIconv]
64 $config = $this->getMockBuilder(
65 \
Magento\Framework\
App\Config\ScopeConfigInterface::class
66 )->disableOriginalConstructor()->setMethods(
67 [
'getValue',
'setValue',
'isSetFlag']
78 $this->returnValue([
'char8482' => [
'from' =>
'™',
'to' =>
'TM']])
81 $objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
84 $this->assertEquals(
'TM', $this->model->filter(
'™'));
testFilter($testString, $result, $resultIconv, $isIconv)