Aleksander Machniak
2013-01-06 a5b8ef99d4e26bdb00e9b74221f107767a084a6e
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));
    }
}