30 $forms = [
'one',
'other' ];
31 $this->assertEquals( $result, $this->
getLang()->convertPlural(
$value, $forms ) );
39 $forms = [
'one',
'two',
'other' ];
40 $this->assertEquals( $result, $this->
getLang()->convertPlural(
$value, $forms ) );
48 $forms = [
'one',
'two',
'many',
'other' ];
49 $this->assertEquals( $result, $this->
getLang()->convertPlural(
$value, $forms ) );
57 $this->assertEquals( $result, $this->
getLang()->getPluralRuleType(
$value ) );
98 $this->assertEquals( $result, $this->
getLang()->convertGrammar( $word, $case ) );
Helping class to run tests using a clean language instance.
Tests for MediaWiki Hebrew grammar transformation handling.
testFourPluralForms( $result, $value)
provideFourPluralForms Language::convertPlural
testThreePluralForms( $result, $value)
provideThreePluralForms Language::convertPlural
static provideFourPluralForms()
static provideTwoPluralForms()
testGrammar( $result, $word, $case)
provideGrammar Language::convertGrammar
testTwoPluralForms( $result, $value)
The most common usage for the plural forms is two forms, for singular and plural.
static provideThreePluralForms()
testGetPluralRuleType( $result, $value)
provideFourPluralForms Language::convertPlural