mediawiki-extensions-Cite/tests/phpunit/unit
Thiemo Kreuz c5fe49ff11 Fail early on nested extends="…", if possible
This partly reverts Ied2e3f5. I haven't properly tested this before.
Rendering a bad extends (that extends a <ref> that's already extended)
not indented messes the order up and rips other extended <ref>s out of
context.

For now it might be better to stick to the previous, "magic" behavior:
Such an extends behaves like it is extending the *parent*, and is
ordered and indented as such. This is still not correct, but I feel
this is much better than rendering such a bad extends on the top level.

This patch also makes the code fail much earlier for a nested extends,
if this decision can be made already. In this case the error message is
rendered in the middle of the text (as other errors also are), not in
the <references> section.

Change-Id: I33c6a763cd6c11df09d10dfab73f955ed15e9d36
2019-12-09 10:54:52 +01:00
..
CiteDataModuleTest.php Move all code to PSR-4 compatible namespaces 2019-11-20 17:00:13 +01:00
CiteHooksUnitTest.php Remove ApiQueryReferences support 2019-11-28 11:08:46 +01:00
CiteKeyFormatterTest.php Use message localizer in CiteKeyFormatter 2019-12-05 14:57:32 +01:00
CiteParserHooksTest.php Remove obsolete ParserBeforeTidy hook handler 2019-12-04 16:56:43 +01:00
CiteParserTagHooksTest.php Move all code to PSR-4 compatible namespaces 2019-11-20 17:00:13 +01:00
CiteUnitTest.php Use the message localizer in Cite 2019-12-05 13:23:31 +01:00
FootnoteBodyFormatterTest.php Fail early on nested extends="…", if possible 2019-12-09 10:54:52 +01:00
FootnoteMarkFormatterTest.php Narrow message localizer interface 2019-12-06 12:17:09 +01:00
ReferenceMessageLocalizerUnitTest.php Narrow message localizer interface 2019-12-06 12:17:09 +01:00
ReferenceStackTest.php Cover rollback with tests 2019-12-03 09:53:23 +01:00