30 'Cyrillic guessing characters'
34 'Latin guessing characters'
44 'Mostly cyrillic characters'
48 'Mostly latin characters'
57 '4 latin: šđčć | 4 cyrillic: шђчћ',
61 '4 latin: šđčć | 4 cyrillic: шђчћ',
72 $this->assertEquals(
'абвг',
76 $this->assertEquals(
'ljабnjвгdž',
80 $this->assertEquals(
'абвг',
84 $this->assertEquals(
'ljабnjвгdž',
88 $this->assertEquals(
'abvgшђжчћ',
92 $this->assertEquals(
'љabvgњшђжчћџ',
96 $this->assertEquals(
'абвгшђжчћ',
100 $this->assertEquals(
'ljабвгnjшђжчћdž',
104 $this->assertEquals(
'а I б II в III г IV шђжчћ',
114 $this->assertEquals(
'abcd',
118 $this->assertEquals(
'abcd',
122 $this->assertEquals(
'abcdšđžčć',
126 $this->assertEquals(
'абцдšđžčć',
136 $forms = [
'one',
'few',
'other' ];
137 $this->assertEquals( $result, $this->
getLang()->convertPlural(
$value, $forms ) );
145 $this->assertEquals( $result, $this->
getLang()->getPluralRuleType(
$value ) );
169 $forms = [
'one',
'other' ];
170 $this->assertEquals( $result, $this->
getLang()->convertPlural(
$value, $forms ) );
183 # #### HELPERS #####################################################
205 $this->assertNotEquals(
246 return $this->
convertTo( $text,
'sr-ec' );
250 return $this->
convertTo( $text,
'sr-el' );
Helping class to run tests using a clean language instance.
testPlural( $result, $value)
providePlural Language::convertPlural
testGetPluralRuleType( $result, $value)
providePlural Language::getPluralRuleType
assertConverted( $text, $variant, $msg='')
Wrapper to verify a text is different once converted to a variant.
static providePluralTwoForms()
testEasyConversions()
LanguageConverter::convertTo.
assertCyrillic( $text, $msg='')
Verifiy the given Cyrillic text is not converted when using using the cyrillic variant and converted ...
convertToCyrillic( $text)
testConversionToCyrillic()
assertUnConverted( $text, $variant, $msg='')
Wrapper to verify text stay the same after applying conversion.
testMixedConversions()
LanguageConverter::convertTo.
convertTo( $text, $variant)
Wrapper for converter::convertTo() method.
assertLatin( $text, $msg='')
Verifiy the given Latin text is not converted when using using the Latin variant and converted to Cyr...
testConversionToLatin()
LanguageConverter::convertTo.
testPluralTwoForms( $result, $value)
providePluralTwoForms Language::convertPlural
testSameAmountOfLatinAndCyrillicGetConverted()
LanguageConverter::convertTo.