15 $forms = [
'one',
'few',
'many',
'other' ];
16 $this->assertEquals( $result, $this->
getLang()->convertPlural(
$value, $forms ) );
24 $forms = [
'one',
'few',
'many',
'other',
'12=dozen' ];
25 $this->assertEquals(
'dozen', $this->
getLang()->convertPlural( 12, $forms ) );
26 $forms = [
'one',
'few',
'many',
'100=hundred',
'other',
'12=dozen' ];
27 $this->assertEquals(
'hundred', $this->
getLang()->convertPlural( 100, $forms ) );
35 $this->assertEquals( $result, $this->
getLang()->getPluralRuleType(
$value ) );
59 $forms = [
'1=one',
'other' ];
60 $this->assertEquals( $result, $this->
getLang()->convertPlural(
$value, $forms ) );
77 $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