public function testReverseFilterOnNonUTF8String() {
if (!function_exists('iconv') && !function_exists('mb_convert_encoding')) {
$this
->markTestSkipped('needs iconv or mbstring');
}
$twig = new Twig_Environment();
$twig
->setCharset('ISO-8859-1');
$input = twig_convert_encoding('Äé', 'ISO-8859-1', 'UTF-8');
$output = twig_convert_encoding(twig_reverse_filter($twig, $input), 'UTF-8', 'ISO-8859-1');
$this
->assertEquals($output, 'éÄ');
}