16 $forms = [
'one',
'few',
'many',
'other' ];
17 $this->assertEquals( $result, $this->
getLang()->convertPlural(
$value, $forms ) );
25 $forms = [
'one',
'few',
'many',
'other',
'12=dozen' ];
26 $this->assertEquals(
'dozen', $this->
getLang()->convertPlural( 12, $forms ) );
27 $forms = [
'one',
'few',
'many',
'100=hundred',
'other',
'12=dozen' ];
28 $this->assertEquals(
'hundred', $this->
getLang()->convertPlural( 100, $forms ) );
36 $this->assertEquals( $result, $this->
getLang()->getPluralRuleType(
$value ) );
60 $forms = [
'1=one',
'other' ];
61 $this->assertEquals( $result, $this->
getLang()->convertPlural(
$value, $forms ) );
78 $this->assertEquals( $result, $this->
getLang()->convertGrammar( $word, $case ) );
Helping class to run tests using a clean language instance.
testPluralTwoForms( $result, $value)
providePluralTwoForms Language::convertPlural
testGrammar( $result, $word, $case)
providerGrammar Language::convertGrammar
testPlural( $result, $value)
providePlural Language::convertPlural
testExplicitPlural()
Test explicit plural forms - n=FormN forms Language::convertPlural.
static providePluralTwoForms()
testGetPluralRuleType( $result, $value)
providePlural Language::getPluralRuleType