16 $this->assertEquals(
'١٬٢٣٤٬٥٦٧', $this->
getLang()->formatNum(
'1234567' ) );
17 $this->assertEquals(
'-١٢٫٨٩', $this->
getLang()->formatNum( -12.89 ) );
26 $this->assertEquals( $expected, $this->
getLang()->sprintfDate( $format, $date ) );
59 $forms = [
'zero',
'one',
'two',
'few',
'many',
'other' ];
60 $this->assertEquals( $result, $this->
getLang()->convertPlural(
$value, $forms ) );
68 $this->assertEquals( $result, $this->
getLang()->getPluralRuleType(
$value ) );
testFormatNum()
Language::formatNum.
static providerSprintfDate()
testPlural( $result, $value)
providePlural Language::convertPlural
testSprintfDate( $format, $date, $expected)
Mostly to test the raw ascii feature.
testGetPluralRuleType( $result, $value)
providePlural Language::getPluralRuleType
Helping class to run tests using a clean language instance.