Localisation updates from http://translatewiki.net.
[mediawiki.git] / tests / phpunit / languages / LanguageMkTest.php
blobcf5ec3d943abc44142b544c5709a1975196e6f24
1 <?php
2 /**
3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Santhosh Thottingal
5 * @file
6 */
8 /** Tests for MediaWiki languages/classes/LanguageMk.php */
9 class LanguageMkTest extends MediaWikiTestCase {
10 private $lang;
12 function setUp() {
13 $this->lang = Language::factory( 'mk' );
15 function tearDown() {
16 unset( $this->lang );
19 /** @dataProvider providerPlural */
20 function testPlural( $result, $value ) {
21 $forms = array( 'one', 'other' );
22 $this->assertEquals( $result, $this->lang->convertPlural( $value, $forms ) );
26 function providerPlural() {
27 return array (
28 array( 'other', 0 ),
29 array( 'one', 1 ),
30 array( 'other', 11 ),
31 array( 'one', 21 ),
32 array( 'other', 411 ),
33 array( 'other', 12.345 ),
34 array( 'other', 20 ),
35 array( 'one', 31 ),
36 array( 'other', 200 ),