wiki.techinc.nl/tests/phpunit/languages
Aryeh Gregor f23c4570e4 Make grammar transform cache an instance member
Normally there shouldn't be more than one Language object in existence
at a time because of $mLangObjCache, so there's no need for a
MapCacheLRU for grammar transformations. Just make it an instance member
of Language.

If someone directly called the Language constructor instead of
factory(), or meddled with $mLangObjCache, with one of the three
languages that have transforms defined, and called
getGrammarTransformations() on both distinct objects, this change could
result in duplication of an array of about 50 elements. I think the risk
is acceptable.

The change should be covered acceptably by existing tests for LanguageHe
and LanguageRu.  (There's not much to test.)

Bug: T201405
Change-Id: I483bafbbb7d109b670596f16381def9e3bd26d89
2019-10-08 22:24:22 +00:00
..
classes Clean up spacing of doc comments 2019-08-05 22:29:50 +00:00
LanguageClassesTestCase.php Use static::class instead of get_called_class() 2016-02-29 22:43:58 +00:00
LanguageConverterTest.php Merge "Accept BCP 47 codes as aliases for nonstandard variants" 2018-10-11 20:46:42 +00:00
LanguageFallbackStaticMethodsTest.php New LanguageFallback service 2019-10-08 15:11:39 -07:00
LanguageTest.php Make grammar transform cache an instance member 2019-10-08 22:24:22 +00:00