| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
l |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
class LanguageGaTest extends LanguageClassesTestCase { |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
public function testPlural( $result, $value ) { |
| 20 |
$forms = [ 'one', 'two', 'other' ]; |
| 21 |
$this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); |
| 22 |
} |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
public function testGetPluralRuleType( $result, $value ) { |
| 29 |
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) ); |
| 30 |
} |
| 31 |
|
| 32 |
public static function providePlural() { |
| 33 |
return [ |
| 34 |
[ 'other', 0 ], |
| 35 |
[ 'one', 1 ], |
| 36 |
[ 'two', 2 ], |
| 37 |
[ 'other', 200 ], |
| 38 |
]; |
| 39 |
} |
| 40 |
} |