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
{
11 /** @dataProvider providePluralAllForms */
12 function testPluralAllForms( $result, $value ) {
13 $forms = array( 'one', 'few', 'many', 'other' );
14 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
17 function providePluralAllForms() {
35 /** @dataProvider providePluralTwoForms */
36 function testPluralTwoForms( $result, $value ) {
37 $forms = array( 'one', 'other' );
38 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
41 function providePluralTwoForms() {
52 array( 'other', 100 ),
54 array( 'other', 111 ),
55 array( 'other', 112 ),