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ºÙ,¥Dn', '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)); } }