assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } /** * @dataProvider providePlural * @covers Language::getPluralRuleType */ public function testGetPluralRuleType( $result, $value ) { $this->markTestSkipped( "This test won't work since convertPlural for gv doesn't seem to actually follow our plural rules." ); $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) ); } public static function providePlural() { return array( array( 'Form 4', 0 ), array( 'Form 2', 1 ), array( 'Form 3', 2 ), array( 'Form 4', 3 ), array( 'Form 1', 20 ), array( 'Form 2', 21 ), array( 'Form 3', 22 ), array( 'Form 4', 23 ), array( 'Form 4', 50 ), ); } }