mediawiki-extensions-Cite/tests/phpunit/unit
Adam Wight a227395e3a Lazy instantiation of Cite
Only create a Cite object if we need one.  Never clearState, just
destroy and recreate later.

This makes it less likely that we leak state between parsers, and
saves memory and processing on pages without references.

It's also preparation to decouple Cite logic from state.

Change-Id: I3db517591f4131c23151c76c223af7419cc00ae9
2019-12-12 11:12:17 +01:00
..
AnchorFormatterTest.php Rename two Cite… classes and clean up test setups 2019-12-12 08:48:02 +01:00
CiteDataModuleTest.php Minor improvements to the test coverage 2019-12-11 12:22:59 +01:00
CiteErrorReporterTest.php Rename two Cite… classes and clean up test setups 2019-12-12 08:48:02 +01:00
CiteHooksUnitTest.php Remove ApiQueryReferences support 2019-11-28 11:08:46 +01:00
CiteParserHooksTest.php Lazy instantiation of Cite 2019-12-12 11:12:17 +01:00
CiteParserTagHooksTest.php Rename CiteParserTagHooks::initialize to register 2019-12-10 14:19:33 +00:00
CiteUnitTest.php Rename two Cite… classes and clean up test setups 2019-12-12 08:48:02 +01:00
FootnoteMarkFormatterTest.php Rename two Cite… classes and clean up test setups 2019-12-12 08:48:02 +01:00
ReferenceMessageLocalizerUnitTest.php Rename formatNumNoSeparators() to localizeDigits() 2019-12-10 16:21:12 +01:00
ReferencesFormatterTest.php Rename two Cite… classes and clean up test setups 2019-12-12 08:48:02 +01:00
ReferenceStackTest.php Lazy instantiation of Cite 2019-12-12 11:12:17 +01:00