15 $forms = [
'one',
'few',
'other' ];
16 $this->assertEquals( $result, $this->
getLang()->convertPlural(
$value, $forms ) );
24 $this->assertEquals( $result, $this->
getLang()->getPluralRuleType(
$value ) );
48 $forms = [
'one',
'other' ];
50 $this->assertEquals( $result, $this->
getLang()->convertPlural(
$value, $forms ) );
Helping class to run tests using a clean language instance.
Tests for MediaWiki languages/LanguageLt.php.
testPlural( $result, $value)
providePlural Language::convertPlural
testOneFewPlural( $result, $value)
providePluralTwoForms Language::convertPlural
static providePluralTwoForms()
testGetPluralRuleType( $result, $value)
providePlural Language::getPluralRuleType