Aleksander Machniak
2013-10-17 037af6890fe6fdb84a08d3c86083e847c90ec0ad
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));
    }
}