Thomas Bruederli
2015-06-01 b91adb30a2651e41aa2774871ae201be2454ef96
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
@@ -16,7 +16,6 @@
        return array(
            array('', ''),
            array("\xC1", ""),
            array("сим\xD0вол", "символ"),
            array("Οὐχὶ ταὐτὰ παρίσταταί μοι γιγνώσκειν", "Οὐχὶ ταὐτὰ παρίσταταί μοι γιγνώσκειν"),
        );
    }
@@ -30,6 +29,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()