wiki.techinc.nl/tests/phpunit/includes/libs
Kunal Mehta 67e62c0b25 Add LinkRenderer (rewrite of Linker::link())
This is a rewrite of Linker::link() to a non-static, LinkTarget-based
interface. Users of plain Linker::link() with no options can use the
LinkRenderer instance provided by MediaWikiServices. Others that
have specific options should create and configure their own instance,
which can be used to create as many links as necessary.

The main entrypoints for making links are:
* ->makeLink( $target, $text, $attribs, $query );
* ->makeKnownLink( $target, $text, $attribs, $query );
* ->makeBrokenLink( $target, $text, $attribs, $query );

The order of the parameters are the same as Linker::link(), except
$options are now part of the LinkRenderer instance, and
known/broken status requires calling the function explicitly.
Additionally, instead of passing in raw $html for the link text, the
$text parameter will automatically be escaped unless it is specially
marked as safe HTML using the MediaWiki\Linker\HtmlArmor class.

The LinkBegin and LinkEnd hooks are now deprecated, but still function
for backwards-compatability. Clients should migrate to the nearly-
equivalent LinkRendererBegin and LinkRendererEnd hooks.
The main differences between the hooks are:
* Passing HtmlPageLinkRenderer object instead of deprecated DummyLinker
* Using LinkTarget instead of Title
* Begin hook can no longer change known/broken status of link. Use the
TitleIsAlwaysKnown hook for that.
* $options are no longer passed, they can be read (but shouldn't be
modified!) from the LinkRenderer object.

Bug: T469
Change-Id: I057cc86ae6404a080aa3c8e0e956ecbb10a897d5
2016-05-23 12:00:09 -07:00
..
composer Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
objectcache BagOStuff: Optionally log duplicate key lookups 2016-04-22 04:21:20 +00:00
ArrayUtilsTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
CSSMinTest.php Swap the rest of array() -> [] 2016-03-30 22:04:58 +00:00
DeferredStringifierTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
GenericArrayObjectTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
HashRingTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
HtmlArmorTest.php Add LinkRenderer (rewrite of Linker::link()) 2016-05-23 12:00:09 -07:00
IEUrlExtensionTest.php IEUrlExtension: Add tests for the main use case the lib exists for 2015-08-28 13:30:31 +02:00
JavaScriptMinifierTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
MemoizedCallableTest.php MemoizedCallable: Add test for memoized closure 2016-03-08 16:42:21 +00:00
MWMessagePackTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ObjectFactoryTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ProcessCacheLRUTest.php Add missing namespace to @covers comments 2016-02-23 03:56:49 +00:00
SamplingStatsdClientTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
StringUtilsTest.php Clean up after "Kill mbstring fallbacks" 2016-04-07 09:02:37 -04:00
TimingTest.php Timing: Fix flaky TimingTest test 2016-02-18 21:06:34 +00:00
XhprofDataTest.php Decouple Xhprof profiling from profiling data processing 2016-05-12 22:23:05 +00:00
XhprofTest.php Decouple Xhprof profiling from profiling data processing 2016-05-12 22:23:05 +00:00
XmlTypeCheckTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00