3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Amir E. Aharoni
5 * based on LanguageSkTest.php
9 /** Tests for MediaWiki languages/classes/LanguageSl.php */
10 class LanguageSlTest
extends LanguageClassesTestCase
{
11 /** @dataProvider providerPlural */
12 function testPlural( $result, $value ) {
13 $forms = array( 'one', 'two', 'few', 'other' );
14 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
17 /** @dataProvider providerPlural */
18 function testGetPluralRuleType( $result, $value ) {
19 $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
22 public static function providerPlural() {
31 array( 'other', 100 ),