Adapt charset cleanup tests to pass with different versions of iconv propucing slightyl different output
| | |
| | | return array( |
| | | array('', ''), |
| | | array("\xC1", ""), |
| | | array("сим\xD0вол", "символ"), |
| | | array("Οὐχὶ ταὐτὰ παρίσταταί μοι γιγνώσκειν", "Οὐχὶ ταὐτὰ παρίσταταί μοι γιγνώσκειν"), |
| | | ); |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * 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() |