Rename JsonUnserial… to JsonDeserial…
[mediawiki.git] / tests / phpunit / includes / languages / LanguageSkTest.php
blob92bb4d4e211666bbb133209f87d3d1bb0d9c2f52
1 <?php
2 /**
3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Amir E. Aharoni
5 * @file
6 */
8 /**
9 * @group Language
11 class LanguageSkTest extends LanguageClassesTestCase {
12 /**
13 * @dataProvider providePlural
14 * @covers \Language::convertPlural
16 public function testPlural( $result, $value ) {
17 $forms = [ 'one', 'few', 'other' ];
18 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
21 /**
22 * @dataProvider providePlural
23 * @covers \Language::getPluralRuleType
25 public function testGetPluralRuleType( $result, $value ) {
26 $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
29 public static function providePlural() {
30 return [
31 [ 'other', 0 ],
32 [ 'one', 1 ],
33 [ 'few', 2 ],
34 [ 'few', 3 ],
35 [ 'few', 4 ],
36 [ 'other', 5 ],
37 [ 'other', 11 ],
38 [ 'other', 20 ],
39 [ 'other', 25 ],
40 [ 'other', 200 ],