Merge "(bug 37755) Set robot meta tags for 'view source' pages"
[lhc/web/wiklou.git] / tests / phpunit / languages / LanguageBhTest.php
1 <?php
2 /**
3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Santhosh Thottingal
5 * @file
6 */
7
8 /** Tests for MediaWiki languages/LanguageBh.php */
9 class LanguageBhTest extends LanguageClassesTestCase {
10
11 /** @dataProvider providePlural */
12 function testPlural( $result, $value ) {
13 $forms = array( 'one', 'other' );
14 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
15 }
16
17 function providePlural() {
18 return array (
19 array( 'one', 0 ),
20 array( 'one', 1 ),
21 array( 'other', 2 ),
22 array( 'other', 200 ),
23 );
24 }
25
26 }