aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/languages/LanguageTest.php
diff options
context:
space:
mode:
authorKunal Mehta <legoktm@member.fsf.org>2017-12-28 00:24:40 -0800
committerLegoktm <legoktm@member.fsf.org>2017-12-28 08:52:56 +0000
commitfc23633035eebb24b7199cb15683e25100184e2b (patch)
tree45d2f446bc00052dbdb940f62c5545d007be007c /tests/phpunit/languages/LanguageTest.php
parenta166e509431ab2f002e3ae68ac3b01a4261a9b16 (diff)
downloadmediawikicore-fc23633035eebb24b7199cb15683e25100184e2b.tar.gz
mediawikicore-fc23633035eebb24b7199cb15683e25100184e2b.zip
Add @covers tags to languages tests
I removed comments that merely repeated the location of the class being tested. There are other tests in this directory that don't have a corresponding class and need further investigation. Change-Id: Ic16f0887b5030ac53fab4382cfaedfb5426cdb08
Diffstat (limited to 'tests/phpunit/languages/LanguageTest.php')
-rw-r--r--tests/phpunit/languages/LanguageTest.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/phpunit/languages/LanguageTest.php b/tests/phpunit/languages/LanguageTest.php
index e39f57ea997b..0c341303f765 100644
--- a/tests/phpunit/languages/LanguageTest.php
+++ b/tests/phpunit/languages/LanguageTest.php
@@ -1630,7 +1630,7 @@ class LanguageTest extends LanguageClassesTestCase {
}
/**
- * @dataProvider testFormatNumProvider
+ * @dataProvider provideFormatNum
* @covers Language::formatNum
*/
public function testFormatNum(
@@ -1643,7 +1643,7 @@ class LanguageTest extends LanguageClassesTestCase {
$this->assertEquals( $expected, $formattedNum );
}
- public function testFormatNumProvider() {
+ public function provideFormatNum() {
return [
[ true, 'en', 100, false, '100' ],
[ true, 'en', 101, true, '101' ],
@@ -1657,6 +1657,7 @@ class LanguageTest extends LanguageClassesTestCase {
}
/**
+ * @covers Language::parseFormattedNumber
* @dataProvider parseFormattedNumberProvider
*/
public function testParseFormattedNumber( $langCode, $number ) {
@@ -1795,6 +1796,9 @@ class LanguageTest extends LanguageClassesTestCase {
];
}
+ /**
+ * @covers Language::equals
+ */
public function testEquals() {
$en1 = new Language();
$en1->setCode( 'en' );