function test_cyrillic()
 {
     // tests whether the cyrillic lower-casing works
     $uppercased = 'А    Б    В    Г    Д    Е    Ж    З    И    Й    К    Л    М    Н    О    П' . 'Р    С    Т    У    Ф    Х    Ц    Ч    Ш    Щ    Ъ    Ы    Ь    Э    Ю    Я';
     $lowercased = 'а    б    в    г    д    е    ж    з    и    й    к    л    м    н    о    п' . 'р    с    т    у    ф    х    ц    ч    ш    щ    ъ    ы    ь    э    ю    я';
     $this->assertEquals(strlen($uppercased), strlen($lowercased));
     $i = 0;
     $j = 0;
     $new_u = '';
     while ($i < strlen($uppercased)) {
         $u = Text_LanguageDetect::_next_char($uppercased, $i, true);
         $l = Text_LanguageDetect::_next_char($lowercased, $j, true);
         $this->assertEquals($u, $l);
         $new_u .= $u;
     }
     $this->assertEquals($i, $j);
     $this->assertEquals($i, strlen($lowercased));
     if (function_exists('mb_strtolower')) {
         $this->assertEquals($new_u, mb_strtolower($uppercased, 'UTF-8'));
     }
 }