wiki.techinc.nl/tests/phpunit/includes/languages/LanguageArqTest.php
Reedy 85396a9c99 tests: Fix @covers and @coversDefaultClass to have leading \
Change-Id: I5629f91387f2ac453ee4341bfe4bba310bd52f03
2024-02-16 22:43:56 +00:00

28 lines
543 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* @author Joel Sahleen
* @copyright Copyright © 2014, Joel Sahleen
* @file
*/
/**
* @group Language
*/
class LanguageArqTest extends LanguageClassesTestCase {
/**
* @dataProvider provideNumber
* @covers \Language::formatNum
*/
public function testFormatNum( $value, $result ) {
$this->assertEquals( $result, $this->getLang()->formatNum( $value ) );
}
public static function provideNumber() {
return [
[ '1234567', '1.234.567' ],
[ '1234567.568', '1.234.567,568' ],
[ '-12.89', '12,89' ]
];
}
}