More complete, more straightforward JobQueueMemoryTest
[mediawiki.git] / tests / phpunit / languages / classes / LanguageSlTest.php
blob9783dd80153d995e0bd132408400c10bf7392e9c
1 <?php
2 /**
3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Amir E. Aharoni
5 * based on LanguageSkTest.php
6 * @file
7 */
9 /** Tests for MediaWiki languages/classes/LanguageSl.php */
10 class LanguageSlTest extends LanguageClassesTestCase {
11 /**
12 * @dataProvider providerPlural
13 * @covers Language::convertPlural
15 public function testPlural( $result, $value ) {
16 $forms = array( 'one', 'two', 'few', 'other' );
17 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
20 /**
21 * @dataProvider providerPlural
22 * @covers Language::getPluralRuleType
24 public function testGetPluralRuleType( $result, $value ) {
25 $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
28 public static function providerPlural() {
29 return array(
30 array( 'other', 0 ),
31 array( 'one', 1 ),
32 array( 'two', 2 ),
33 array( 'few', 3 ),
34 array( 'few', 4 ),
35 array( 'other', 5 ),
36 array( 'other', 99 ),
37 array( 'other', 100 ),
38 array( 'one', 101 ),
39 array( 'two', 102 ),
40 array( 'few', 103 ),
41 array( 'one', 201 ),