Aleksander Machniak
2014-11-20 0b36d151572e050b51d82e7429fee847ebb33e22
tests/Framework/Charset.php
@@ -159,4 +159,22 @@
        $this->assertEquals($output, rcube_charset::detect($input, $fallback));
    }
    /**
     * Data for test_detect()
     */
    function data_detect_with_lang()
    {
        return array(
            array('Åã¥Ü¦WºÙ,¥D­n', 'zh_TW', 'BIG-5'),
        );
    }
    /**
     * @dataProvider data_detect_with_lang
     */
    function test_detect_with_lang($input, $lang, $output)
    {
        $this->assertEquals($output, rcube_charset::detect($input, $output, $lang));
    }
}