3 * @author Amir E. Aharoni
4 * based on LanguageBe_tarask.php
5 * @copyright Copyright © 2012, Amir E. Aharoni
9 /** Tests for MediaWiki languages/classes/LanguageUk.php */
10 class LanguageUkTest
extends MediaWikiTestCase
{
14 $this->lang
= Language
::factory( 'Uk' );
20 /** @dataProvider providePluralFourForms */
21 function testPluralFourForms( $result, $value ) {
22 $forms = array( 'one', 'few', 'many', 'other' );
23 $this->assertEquals( $result, $this->lang
->convertPlural( $value, $forms ) );
26 function providePluralFourForms() {
41 /** @dataProvider providePluralTwoForms */
42 function testPluralTwoForms( $result, $value ) {
43 $forms = array( 'one', 'several' );
44 $this->assertEquals( $result, $this->lang
->convertPlural( $value, $forms ) );
46 function providePluralTwoForms() {
49 array( 'several', 11 ),
50 array( 'several', 91 ),
51 array( 'several', 121 ),