dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Fix PerDbnameStatsdDataFactory metric prefix"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
languages
/
classes
/
LanguageZhTest.php
diff --git
a/tests/phpunit/languages/classes/LanguageZhTest.php
b/tests/phpunit/languages/classes/LanguageZhTest.php
index
f19d967
..
2e73ac5
100644
(file)
--- a/
tests/phpunit/languages/classes/LanguageZhTest.php
+++ b/
tests/phpunit/languages/classes/LanguageZhTest.php
@@
-1,5
+1,10
@@
<?php
<?php
+/**
+ * @covers LanguageZh
+ * @covers LanguageZh_hans
+ * @covers ZhConverter
+ */
class LanguageZhTest extends LanguageClassesTestCase {
/**
* @dataProvider provideAutoConvertToAllVariants
class LanguageZhTest extends LanguageClassesTestCase {
/**
* @dataProvider provideAutoConvertToAllVariants
@@
-10,10
+15,10
@@
class LanguageZhTest extends LanguageClassesTestCase {
}
public static function provideAutoConvertToAllVariants() {
}
public static function provideAutoConvertToAllVariants() {
- return
array(
+ return
[
// Plain hant -> hans
// Plain hant -> hans
- array(
- array(
+ [
+ [
'zh' => '㑯',
'zh-hans' => '㑔',
'zh-hant' => '㑯',
'zh' => '㑯',
'zh-hans' => '㑔',
'zh-hant' => '㑯',
@@
-23,12
+28,12
@@
class LanguageZhTest extends LanguageClassesTestCase {
'zh-my' => '㑔',
'zh-sg' => '㑔',
'zh-tw' => '㑯',
'zh-my' => '㑔',
'zh-sg' => '㑔',
'zh-tw' => '㑯',
-
)
,
+
]
,
'㑯'
'㑯'
-
)
,
+
]
,
// Plain hans -> hant
// Plain hans -> hant
- array(
- array(
+ [
+ [
'zh' => '㐷',
'zh-hans' => '㐷',
'zh-hant' => '傌',
'zh' => '㐷',
'zh-hans' => '㐷',
'zh-hant' => '傌',
@@
-38,12
+43,12
@@
class LanguageZhTest extends LanguageClassesTestCase {
'zh-my' => '㐷',
'zh-sg' => '㐷',
'zh-tw' => '傌',
'zh-my' => '㐷',
'zh-sg' => '㐷',
'zh-tw' => '傌',
-
)
,
+
]
,
'㐷'
'㐷'
-
)
,
+
]
,
// zh-cn specific
// zh-cn specific
- array(
- array(
+ [
+ [
'zh' => '仲介',
'zh-hans' => '仲介',
'zh-hant' => '仲介',
'zh' => '仲介',
'zh-hans' => '仲介',
'zh-hant' => '仲介',
@@
-53,12
+58,12
@@
class LanguageZhTest extends LanguageClassesTestCase {
'zh-my' => '中介',
'zh-sg' => '中介',
'zh-tw' => '仲介',
'zh-my' => '中介',
'zh-sg' => '中介',
'zh-tw' => '仲介',
-
)
,
+
]
,
'仲介'
'仲介'
-
)
,
+
]
,
// zh-hk specific
// zh-hk specific
- array(
- array(
+ [
+ [
'zh' => '中文里',
'zh-hans' => '中文里',
'zh-hant' => '中文裡',
'zh' => '中文里',
'zh-hans' => '中文里',
'zh-hant' => '中文裡',
@@
-68,12
+73,12
@@
class LanguageZhTest extends LanguageClassesTestCase {
'zh-my' => '中文里',
'zh-sg' => '中文里',
'zh-tw' => '中文裡',
'zh-my' => '中文里',
'zh-sg' => '中文里',
'zh-tw' => '中文裡',
-
)
,
+
]
,
'中文里'
'中文里'
-
)
,
+
]
,
// zh-tw specific
// zh-tw specific
- array(
- array(
+ [
+ [
'zh' => '甲肝',
'zh-hans' => '甲肝',
'zh-hant' => '甲肝',
'zh' => '甲肝',
'zh-hans' => '甲肝',
'zh-hant' => '甲肝',
@@
-83,12
+88,12
@@
class LanguageZhTest extends LanguageClassesTestCase {
'zh-my' => '甲肝',
'zh-sg' => '甲肝',
'zh-tw' => 'A肝',
'zh-my' => '甲肝',
'zh-sg' => '甲肝',
'zh-tw' => 'A肝',
-
)
,
+
]
,
'甲肝'
'甲肝'
-
)
,
+
]
,
// zh-tw overrides zh-hant
// zh-tw overrides zh-hant
- array(
- array(
+ [
+ [
'zh' => '账',
'zh-hans' => '账',
'zh-hant' => '賬',
'zh' => '账',
'zh-hans' => '账',
'zh-hant' => '賬',
@@
-98,12
+103,12
@@
class LanguageZhTest extends LanguageClassesTestCase {
'zh-my' => '账',
'zh-sg' => '账',
'zh-tw' => '帳',
'zh-my' => '账',
'zh-sg' => '账',
'zh-tw' => '帳',
-
)
,
+
]
,
'账'
'账'
-
)
,
+
]
,
// zh-hk overrides zh-hant
// zh-hk overrides zh-hant
- array(
- array(
+ [
+ [
'zh' => '一地里',
'zh-hans' => '一地里',
'zh-hant' => '一地裡',
'zh' => '一地里',
'zh-hans' => '一地里',
'zh-hant' => '一地裡',
@@
-113,9
+118,9
@@
class LanguageZhTest extends LanguageClassesTestCase {
'zh-my' => '一地里',
'zh-sg' => '一地里',
'zh-tw' => '一地裡',
'zh-my' => '一地里',
'zh-sg' => '一地里',
'zh-tw' => '一地裡',
-
)
,
+
]
,
'一地里'
'一地里'
-
)
,
-
)
;
+
]
,
+
]
;
}
}
}
}