'bug 23156: U+2019 conversion to U+0027'
);
}
+
/** see bug 23156 & r64981 */
function testCommafy() {
$this->assertEquals( '1,234,567', $this->getLang()->commafy( '1234567' ) );
- $this->assertEquals( '12,345', $this->getLang()->commafy( '12345' ) );
+ $this->assertEquals( '12,345', $this->getLang()->commafy( '12345' ) );
}
+
/** see bug 23156 & r64981 */
function testDoesNotCommafyFourDigitsNumber() {
- $this->assertEquals( '1234', $this->getLang()->commafy( '1234' ) );
+ $this->assertEquals( '1234', $this->getLang()->commafy( '1234' ) );
}
+
/** @dataProvider providePluralFourForms */
function testPluralFourForms( $result, $value ) {
- $forms = array( 'one', 'few', 'many', 'other' );
+ $forms = array( 'one', 'few', 'many', 'other' );
$this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
}
function providePluralFourForms() {
- return array (
+ return array(
array( 'one', 1 ),
array( 'many', 11 ),
array( 'one', 91 ),
array( 'many', 120 ),
);
}
+
/** @dataProvider providePluralTwoForms */
function testPluralTwoForms( $result, $value ) {
- $forms = array( 'one', 'several' );
+ $forms = array( 'one', 'several' );
$this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
}
+
function providePluralTwoForms() {
- return array (
+ return array(
array( 'one', 1 ),
array( 'several', 11 ),
array( 'several', 91 ),