Thomas Bruederli
2015-06-01 7eefdc814991e6b8d9cd414678a2263a739cf358
Adapt charset cleanup tests to pass with different versions of iconv propucing slightyl different output
1 files modified
11 ■■■■■ changed files
tests/Framework/Charset.php 11 ●●●●● patch | view | raw | blame | history
tests/Framework/Charset.php
@@ -18,7 +18,6 @@
        return array(
            array('', ''),
            array("\xC1", ""),
            array("сим\xD0вол", "символ"),
            array("Οὐχὶ ταὐτὰ παρίσταταί μοι γιγνώσκειν", "Οὐχὶ ταὐτὰ παρίσταταί μοι γιγνώσκειν"),
        );
    }
@@ -32,6 +31,16 @@
    }
    /**
     * Just check for faulty byte-sequence, regardless of the actual cleaning results
     */
    function test_clean_2()
    {
        $bogus = "сим\xD0вол";
        $this->assertRegExp('/\xD0\xD0/', $bogus);
        $this->assertNotRegExp('/\xD0\xD0/', rcube_charset::clean($bogus));
    }
    /**
     * Data for test_parse_charset()
     */
    function data_parse_charset()