3 * @author Amir E. Aharoni
4 * @copyright Copyright © 2012, Amir E. Aharoni
8 /** Tests for MediaWiki languages/classes/LanguageSgs.php */
9 class LanguageSgsTest
extends LanguageClassesTestCase
{
10 /** @dataProvider providePluralAllForms */
11 function testPluralAllForms( $result, $value ) {
12 $forms = array( 'one', 'two', 'few', 'other' );
13 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
16 /** @dataProvider providePluralAllForms */
17 function testGetPluralRuleType( $result, $value ) {
18 $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
21 public static function providePluralAllForms() {
39 /** @dataProvider providePluralTwoForms */
40 function testPluralTwoForms( $result, $value ) {
41 $forms = array( 'one', 'other' );
42 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
45 public static function providePluralTwoForms() {
56 array( 'other', 100 ),
58 array( 'other', 111 ),
59 array( 'other', 112 ),