wiki.techinc.nl/tests/phpunit/includes/parser
C. Scott Ananian 7a2331706f Deprecate Parser::firstCallInit()
Originally we created a Parser object on every request, and so care
was taken to make Parser construction lightweight.  In particular,
all potentially costly initialization was moved into a separate
Parser::firstCallInit() method.  Starting with 1.32, parser construction
has instead been done lazily, via the ParserFactory registered with
MediaWikiServices.  The extra complexity associated with the old manual
lazy initialization of Parser is therefore no longer needed.

Deprecate Parser::firstCallInit() as part of a general plan to refactor
the Parser class to allow subclasses and alternate parser implementations.
Add some tests to assert that parsers are being created lazily, and are
not being created when they are not needed.

Bug: T250444
Change-Id: Iffd2b38a2f848dad88010d243250b37506b2c715
2020-04-17 12:49:34 -04:00
..
CoreParserFunctionsTest.php Replace some oldskool @see with @inheritDoc 2019-11-08 18:00:27 +00:00
MagicVariableTest.php Deprecate old-style accessor/mutation methods of Parser 2020-04-16 16:37:02 -04:00
ParserMethodsTest.php Fixes for PHPUnit 8 compat in DB suite 2019-12-15 00:27:54 +00:00
ParserOptionsTest.php Update ParserOptionsTest 2020-04-02 14:01:16 -04:00
ParserOutputTest.php Allow storing additional CSP sources in ParserOutput 2020-03-12 17:39:51 -07:00
ParserPreloadTest.php Deprecate old-style accessor/mutation methods of Parser 2020-04-16 16:37:02 -04:00
ParserTest.php Deprecate Parser::firstCallInit() 2020-04-17 12:49:34 -04:00
PreprocessorTest.php Remove Preprocessor_DOM, deprecated in 1.34 2020-01-25 11:22:45 -05:00
SanitizerTest.php Remove codepaths which ran parser in 'untidy' mode 2020-04-13 21:34:04 +00:00
StripStateTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
TagHooksTest.php Hard deprecate Parser::setFunctionTagHook() 2020-01-28 16:20:40 -08:00