wiki.techinc.nl/tests/phpunit/includes
Florian ba40a63c0e Don't construct SpecialPages twice
If the special page object was already created for the request, there's
no need to create the object again. Save the created result (object, null)
in a global static array and return the value if the realName was already
created.

Bug: T123995
Change-Id: I70bf0e93e45f4b0597deaef717f5eb87c66f0a71
2016-04-02 17:45:20 +02:00
..
actions Use static::class instead of get_called_class() 2016-02-29 22:43:58 +00:00
api Swap the rest of array() -> [] 2016-03-30 22:04:58 +00:00
cache Fix numerous class/function casing 2016-03-18 23:14:49 +00:00
changes Avoid rebuilding database fixtures for every test run 2016-03-10 23:44:34 +00:00
composer Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
config Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
content Remove Title::newFromRedirectArray 2016-04-02 13:28:37 +00:00
context Fix numerous class/function casing 2016-03-18 23:14:49 +00:00
db Support custom query in pt-heartbeat lag detection 2016-04-01 23:41:14 +00:00
debug Add missing namespace to @covers comments 2016-02-23 03:56:49 +00:00
deferred Link to Special:WhatLinksHere in CatWatch bundeled summary 2016-03-17 16:02:49 +00:00
diff Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
exception Fix numerous class/function casing 2016-03-18 23:14:49 +00:00
externalstore Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
filebackend Many more function case mismatches 2016-03-19 00:20:58 +00:00
filerepo Many more function case mismatches 2016-03-19 00:20:58 +00:00
GlobalFunctions Update comments about language codes 2016-02-19 07:31:51 +00:00
htmlform Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
import Swap the rest of array() -> [] 2016-03-30 22:04:58 +00:00
installer Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
jobqueue Make Job::toString() handle array parameters better 2016-03-16 03:45:35 -07:00
json Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
libs Swap the rest of array() -> [] 2016-03-30 22:04:58 +00:00
logging Changed 'expiry' to American English 'expiration' in en.json 2016-02-18 20:07:27 +01:00
mail Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
media Swap the rest of array() -> [] 2016-03-30 22:04:58 +00:00
objectcache Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
page Remove (WikiPage|Article)::replaceSection() 2016-04-01 20:32:01 +00:00
parser Swap the rest of array() -> [] 2016-03-30 22:04:58 +00:00
password Swap the rest of array() -> [] 2016-03-30 22:04:58 +00:00
phpunit Include phpunit license for backported classes 2015-09-25 11:18:20 -07:00
poolcounter Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
registration Add missing namespace to @covers comments 2016-02-23 03:56:49 +00:00
resourceloader Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
search Avoid rebuilding database fixtures for every test run 2016-03-10 23:44:34 +00:00
session Use ::class in place of string constants 2016-03-28 14:53:45 -04:00
site Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
skins Fix trivial PHPCS violations in */skins/* directories 2016-03-02 21:02:15 +01:00
specialpage Don't construct SpecialPages twice 2016-04-02 17:45:20 +02:00
specials Merge "Factor SpecilaPageExecutor out of SpecialPageTestBase" 2016-03-28 02:22:44 +00:00
title phpunit: Abstract user-lang override in MediaWikiTestCase 2016-03-09 16:55:50 +00:00
upload Swap the rest of array() -> [] 2016-03-30 22:04:58 +00:00
user Use ::class in place of string constants 2016-03-28 14:53:45 -04:00
utils Disable flaky UIDGeneratorTest::testTimestampedUID test 2016-04-02 00:06:21 +01:00
BlockTest.php Many more function case mismatches 2016-03-19 00:20:58 +00:00
CollationTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
DiffHistoryBlobTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
EditPageTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ExportTest.php phpunit: Abstract user-lang override in MediaWikiTestCase 2016-03-09 16:55:50 +00:00
ExtraParserTest.php phpunit: Abstract user-lang override in MediaWikiTestCase 2016-03-09 16:55:50 +00:00
FallbackTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
FauxRequestTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
FauxResponseTest.php Fix numerous class/function casing 2016-03-18 23:14:49 +00:00
FormOptionsInitializationTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
FormOptionsTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
GitInfoTest.php GitInfo: Allow cache to be in the extension directory itself 2016-01-06 14:41:36 -08:00
HooksTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
HtmlFormatterTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
HtmlTest.php wgUseMediaWikiUIEverywhere false in Html/XmlTest 2016-03-24 15:02:34 +00:00
HttpTest.php Merge "Http::getProxy() method to get proxy configuration" 2016-03-25 15:38:18 +00:00
LicensesTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
LinkerTest.php Swap the rest of array() -> [] 2016-03-30 22:04:58 +00:00
LinkFilterTest.php LinkFilterTests: Uncomment test cases that should pass on PHP 5.5 2016-02-17 19:35:20 +00:00
MediaWikiTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
MediaWikiVersionFetcherTest.php tests: Clean up file headers 2015-04-01 00:17:12 +01:00
MergeHistoryTest.php Avoid rebuilding database fixtures for every test run 2016-03-10 23:44:34 +00:00
MessageTest.php phpunit: Abstract user-lang override in MediaWikiTestCase 2016-03-09 16:55:50 +00:00
MimeMagicTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
MovePageTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
MWNamespaceTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
MWTimestampTest.php phpunit: Abstract user-lang override in MediaWikiTestCase 2016-03-09 16:55:50 +00:00
OutputPageTest.php Swap the rest of array() -> [] 2016-03-30 22:04:58 +00:00
PagePropsTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
PathRouterTest.php Swap the rest of array() -> [] 2016-03-30 22:04:58 +00:00
PreferencesTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
PrefixSearchTest.php Avoid rebuilding database fixtures for every test run 2016-03-10 23:44:34 +00:00
RevisionStorageTest.php Remove Revision::getRawText() 2016-04-01 19:57:35 +01:00
RevisionStorageTestContentHandlerUseDB.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
RevisionTest.php Remove Revision::getRawText() 2016-04-01 19:57:35 +01:00
SampleTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
SanitizerTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
SanitizerValidateEmailTest.php Move several unit tests to directly subclass PHPUnit_Framework_TestCase 2015-06-09 10:03:23 -07:00
SiteConfigurationTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
StatusTest.php Allow passing a language into Status::getWikiText() etc. 2016-03-09 22:35:19 +00:00
TemplateCategoriesTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
TemplateParserTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
TestingAccessWrapper.php Handle static access in TestingAccessWrapper 2016-01-24 22:24:10 -06:00
TestingAccessWrapperTest.php Handle static access in TestingAccessWrapper 2016-01-24 22:24:10 -06:00
TestLogger.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
TestUser.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
TimeAdjustTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
TitleArrayFromResultTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
TitleMethodsTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
TitlePermissionTest.php Many more function case mismatches 2016-03-19 00:20:58 +00:00
TitleTest.php phpunit: Abstract user-lang override in MediaWikiTestCase 2016-03-09 16:55:50 +00:00
WatchedItemIntegrationTest.php Add WatchedItemIntegrationTest 2016-03-08 15:09:06 +00:00
WatchedItemStoreIntegrationTest.php Merge "Add WatchedItemStore::getWatchedItemsForUser" 2016-03-23 15:45:45 +00:00
WatchedItemStoreUnitTest.php Introduce NullStatsdDataFactory 2016-04-02 13:02:37 +00:00
WatchedItemUnitTest.php Switch Signature of WatchedItemStore::addWatchBatch 2016-03-24 18:28:08 +00:00
WebRequestTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
WikiMapTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
WikiReferenceTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
XmlJsTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
XmlSelectTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
XmlTest.php wgUseMediaWikiUIEverywhere false in Html/XmlTest 2016-03-24 15:02:34 +00:00