* Upgrade to revision 8007, Contains minor change - Armenian(hy) is added * Remove MW custom plural logic from LanguageHy.php * Add qunit test case * Correct phpunit testcase Change-Id: If78436fa1597e6f3b7f050c5eede4521018904c0
26 lines
574 B
PHP
26 lines
574 B
PHP
<?php
|
|
/**
|
|
* @author Santhosh Thottingal
|
|
* @copyright Copyright © 2012, Santhosh Thottingal
|
|
* @file
|
|
*/
|
|
|
|
/** Tests for MediaWiki languages/LanguageHy.php */
|
|
class LanguageHyTest extends LanguageClassesTestCase {
|
|
|
|
/** @dataProvider providerPlural */
|
|
function testPlural( $result, $value ) {
|
|
$forms = array( 'one', 'other' );
|
|
$this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
|
|
}
|
|
|
|
function providerPlural() {
|
|
return array (
|
|
array( 'other', 0 ),
|
|
array( 'one', 1 ),
|
|
array( 'other', 2 ),
|
|
array( 'other', 200 ),
|
|
);
|
|
}
|
|
|
|
}
|