3 * @author Amir E. Aharoni
4 * @copyright Copyright © 2012, Amir E. Aharoni
8 /** Tests for MediaWiki languages/classes/LanguageSgs.php */
9 class LanguageSgsTest
extends MediaWikiTestCase
{
13 $this->lang
= Language
::factory( 'Sgs' );
19 /** @dataProvider providePluralAllForms */
20 function testPluralAllForms( $result, $value ) {
21 $forms = array( 'one', 'few', 'many', 'other' );
22 $this->assertEquals( $result, $this->lang
->convertPlural( $value, $forms ) );
25 function providePluralAllForms() {
43 /** @dataProvider providePluralTwoForms */
44 function testPluralTwoForms( $result, $value ) {
45 $forms = array( 'one', 'other' );
46 $this->assertEquals( $result, $this->lang
->convertPlural( $value, $forms ) );
49 function providePluralTwoForms() {
60 array( 'other', 100 ),
62 array( 'other', 111 ),
63 array( 'other', 112 ),