wiki.techinc.nl/tests/phpunit/languages
Jack Phoenix b704c9f4de Add 'avoidhours' option to Language#formatTimePeriod
Example use case: in some skins we want to show how many *days* ago a page was edited, but we don't really care about the precise _hours_.
Thus we'll set [ 'avoid' => 'avoidhours' ] when calling Language#formatTimePeriod to output something like "Page last edited 60 days ago" instead of "Page last edited 60 days 9 hours ago".

Change-Id: I0a737aab14ccb2b8d4eccdc41e1eb9232eedcb8a
2019-05-10 11:06:00 +03:00
..
classes Fix comments in language class tests 2018-12-25 15:00:34 +01:00
LanguageClassesTestCase.php Use static::class instead of get_called_class() 2016-02-29 22:43:58 +00:00
LanguageCodeTest.php Ensure LanguageCode::bcp47() returns a valid BCP 47 language code 2018-10-11 01:53:54 -04:00
LanguageConverterTest.php Merge "Accept BCP 47 codes as aliases for nonstandard variants" 2018-10-11 20:46:42 +00:00
LanguageTest.php Add 'avoidhours' option to Language#formatTimePeriod 2019-05-10 11:06:00 +03:00
SpecialPageAliasTest.php Add @coversNothing to tests that don't cover specific PHP classes 2018-06-12 13:27:40 -07:00