| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
i |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
class LanguageSkTest extends LanguageClassesTestCase { |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
public function testPlural( $result, $value ) { |
| 17 |
$forms = [ 'one', 'few', 'other' ]; |
| 18 |
$this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); |
| 19 |
} |
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
public function testGetPluralRuleType( $result, $value ) { |
| 26 |
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) ); |
| 27 |
} |
| 28 |
|
| 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 ], |
| 41 |
]; |
| 42 |
} |
| 43 |
} |