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 "Selenium: replace UserLoginPage with BlankPage where possible"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
languages
/
LanguageTest.php
diff --git
a/tests/phpunit/languages/LanguageTest.php
b/tests/phpunit/languages/LanguageTest.php
index
050f07d
..
2f6fa39
100644
(file)
--- a/
tests/phpunit/languages/LanguageTest.php
+++ b/
tests/phpunit/languages/LanguageTest.php
@@
-135,6
+135,18
@@
class LanguageTest extends LanguageClassesTestCase {
'48 hours 0 minutes',
'formatTimePeriod() rounding (=48h), avoidseconds'
],
'48 hours 0 minutes',
'formatTimePeriod() rounding (=48h), avoidseconds'
],
+ [
+ 259199.55,
+ 'avoidhours',
+ '3 d',
+ 'formatTimePeriod() rounding (>48h), avoidhours'
+ ],
+ [
+ 259199.55,
+ [ 'avoid' => 'avoidhours', 'noabbrevs' => true ],
+ '3 days',
+ 'formatTimePeriod() rounding (>48h), avoidhours'
+ ],
[
259199.55,
'avoidminutes',
[
259199.55,
'avoidminutes',
@@
-1052,6
+1064,27
@@
class LanguageTest extends LanguageClassesTestCase {
'平成24',
'nengo'
],
'平成24',
'nengo'
],
+ [
+ 'xtY',
+ '20190430235959',
+ '平成31',
+ '平成31',
+ 'nengo - last day of heisei'
+ ],
+ [
+ 'xtY',
+ '20190501000000',
+ '令和元',
+ '令和元',
+ 'nengo - first day of reiwa'
+ ],
+ [
+ 'xtY',
+ '20200501000000',
+ '令和2',
+ '令和2',
+ 'nengo - second year of reiwa'
+ ],
[
'xrxkYY',
'20120102090705',
[
'xrxkYY',
'20120102090705',