Merge "Add pp_propname_page index to page_props"
[lhc/web/wiklou.git] / tests / phpunit / languages / LanguageGaTest.php
1 <?php
2 /**
3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Santhosh Thottingal
5 * @file
6 */
7
8 /** Tests for MediaWiki languages/classes/LanguageGa.php */
9 class LanguageGaTest extends LanguageClassesTestCase {
10
11 /** @dataProvider providerPlural */
12 function testPlural( $result, $value ) {
13 $forms = array( 'one', 'two', 'other' );
14 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
15 }
16
17 function providerPlural() {
18 return array(
19 array( 'other', 0 ),
20 array( 'one', 1 ),
21 array( 'two', 2 ),
22 array( 'other', 200 ),
23 );
24 }
25
26 }