15 $forms = [
'one',
'few',
'many' ];
16 $this->assertEquals( $result, $this->
getLang()->convertPlural(
$value, $forms ) );
24 $this->assertEquals( $result, $this->
getLang()->getPluralRuleType(
$value ) );
53 $forms = [
'one',
'other' ];
54 $this->assertEquals( $result, $this->
getLang()->convertPlural(
$value, $forms ) );
85 $this->
getLang()->commafy( $number ),
96 [ 1000.0001,
'1000.0001' ],
97 [ 10000.0001,
'10,000.0001' ],
99 [ -10000,
'-10,000' ],
100 [ -1000.0001,
'-1000.0001' ],
101 [ -10000.0001,
'-10,000.0001' ],
Helping class to run tests using a clean language instance.
Tests for MediaWiki languages/classes/LanguagePl.php.
testPlural( $result, $value)
providePlural Language::convertPlural
testPluralTwoForms( $result, $value)
providePluralTwoForms Language::convertPlural
static providePluralTwoForms()
testCommafy( $number, $numbersWithCommas)
Language::commafy() provideCommafyData.
static provideCommafyData()
testGetPluralRuleType( $result, $value)
providePlural Language::getPluralRuleType