wiki.techinc.nl/tests/phpunit/unit/includes/parser
C. Scott Ananian 9632dfb041 Move ::addTrackingCategory() implementation to TrackingCategories
This moves the implementation of ParserOutput::addTrackingCategory()
to the TrackingCategories class as a non-static method. This makes
invocation from ParserOutput awkward, but when invoking as
Parser::addTrackingCategory() all the necessary services are
available.  As a result, we've also soft-deprecated
ParserOutput::addTrackingCategory(); new users should use the
TrackingCategories::addTrackingCategory() method, or else
Parser::addTrackingCategory() if the parser object is available.

The Parser class is already kind of bloated as it is (alas), but there
aren't too many callsites which invoke
ParserOutput::addTrackingCategory() and don't have the corresponding
Parser object handy; see:

https://codesearch.wmcloud.org/search/?q=%5BOo%5Dutput%28%5C%28%5C%29%29%3F-%3EaddTrackingCategory%5C%28&i=nope&files=&excludeFiles=&repos=

Change-Id: I697ce188a912e445a6a748121575548e79aabac6
2021-10-15 14:17:58 -04:00
..
LinkHolderArrayTest.php Update LinkHolderArray tests for new HookContainer parameter 2020-06-23 09:00:32 +10:00
ParserCacheFactoryTest.php Convert ParserCache to PageRecord 2021-04-02 21:14:54 -06:00
ParserFactoryTest.php Move ::addTrackingCategory() implementation to TrackingCategories 2021-10-15 14:17:58 -04:00
ParserObserverTest.php Detect and monitor against multiple Parser invocation during edit requests 2021-09-23 16:12:40 -05:00
SanitizerUnitTest.php Use PHP \u{xxxx} syntax 2021-08-27 20:53:19 +00:00