wiki.techinc.nl/tests/phpunit/includes
Ori Livneh 66afa6ecd0 MWDebugTest: disable MWDebug on test teardown
MWDebug::init() is currently irreversible -- once MWDebug is enabled, it cannot
be disabled in that execution context. This means that the MWDebug test suite
(which enables MWDebug) has a nasty side-effect -- all the tests that run after
it run with MWDebug enabled. So add an MWDebug::deinit(), and call it on test
teardown.

Ostensibly this is a great use-case for services and dependency injection. The
reason I am not going that route is that it's not entirely clear to me what the
MWDebug class is supposed to represent. If I were going to spend any
substantial amount of time on this, I would be trying to move it out of core
and into an extension, not converting it into a service.

Change-Id: I52c511be049bc276d203d07283e3aa0944f22d34
2016-05-18 02:23:26 -07:00
..
actions Use static::class instead of get_called_class() 2016-02-29 22:43:58 +00:00
api API changes for AuthManager 2016-05-16 15:12:52 +00:00
auth Use AuthManager on special pages 2016-05-16 15:12:13 +00:00
cache Fix numerous class/function casing 2016-03-18 23:14:49 +00:00
changes Update mediawiki/mediawiki-codesniffer to 0.7.1 2016-05-07 07:24:04 +00:00
composer Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
config Allow reset of global services (redux). 2016-05-04 19:18:29 +02:00
content Merge "Remove support for $wgWellFormedXml=false" 2016-05-13 21:52:23 +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 MWDebugTest: disable MWDebug on test teardown 2016-05-18 02:23:26 -07:00
deferred Convert SearchEngine to service containers 2016-04-25 16:25:17 -07: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 Support hash fragments in wfAppendQuery() 2016-05-02 19:18:24 -07:00
htmlform Enforce calling HTMLForm::prepareForm before displayForm 2016-04-27 20:00:06 +01: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
interwiki Introduce InterwikiTest 2016-04-23 21:44:59 +02:00
jobqueue Merge "CatWatch don't show the number of pages transcluded" 2016-04-14 14:10:12 +00:00
json Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
libs Decouple Xhprof profiling from profiling data processing 2016-05-12 22:23:05 +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 Fix and standardize Doxygen tags 2016-04-30 12:10:17 +02:00
objectcache Follow-up cdc93a62bf: add serialize/unserialize tests for RedisBagOStuff 2016-05-12 22:41:16 +00:00
page Update mediawiki/mediawiki-codesniffer to 0.7.1 2016-05-07 07:24:04 +00:00
parser Remove support for $wgWellFormedXml=false 2016-05-12 17:40:01 -04: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 Include type in hashKeyIntoSlots() 2016-05-09 16:54:51 -07:00
registration registration: Allow string value for Hooks 2016-05-03 13:23:07 -07:00
resourceloader resourceloader: Implement modern module loading (2/2) 2016-04-13 15:43:41 +00:00
search PrefixSearchTest, SearchEnginePrefixTest: ignore ext. special pages 2016-04-29 15:53:37 -04:00
Services Allow reset of global services (redux). 2016-05-04 19:18:29 +02:00
session Add AuthManager 2016-05-16 15:11:02 +00:00
site Introduce top level service locator. 2016-04-02 18:07:28 +03: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 Convert SearchEngine to service containers 2016-04-25 16:25:17 -07:00
title TitleFormatter: Match Title behavior for non-existent namespaces 2016-05-12 11:36:30 -07:00
upload Swap the rest of array() -> [] 2016-03-30 22:04:58 +00:00
user Use AuthManager on special pages 2016-05-16 15:12:13 +00:00
utils Fix UID test and make debugging easier 2016-04-05 18:52:14 -04: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
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
HtmlTest.php Remove support for $wgWellFormedXml=false 2016-05-12 17:40:01 -04: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 LinkerTest: Fix passing test description to $this->assertEquals() 2016-05-17 20:30:02 +00:00
LinkFilterTest.php LinkFilterTests: Uncomment test cases that should pass on PHP 5.5 2016-02-17 19:35:20 +00:00
MediaWikiServicesTest.php Add LinkCache to MediaWikiServices 2016-05-12 15:44:33 -07: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 Fix and standardize Doxygen tags 2016-04-30 12:10:17 +02:00
MessageTest.php Unify HTMLForm message handling 2016-05-02 19:48:28 +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 Remove support for $wgWellFormedXml=false 2016-05-12 17:40:01 -04: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 PrefixSearchTest, SearchEnginePrefixTest: ignore ext. special pages 2016-04-29 15:53:37 -04: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 Add @since tags for TestUser::getUser/Password 2016-05-06 16:01:40 +01: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 Revert "Split editcascadeprotected permission from protect permission" 2016-05-12 21:43:06 +00:00
TitleTest.php Add tests for Title::getPrefixedText() 2016-05-12 11:36:30 -07:00
WatchedItemIntegrationTest.php Add wfDeprecated calls to WatchedItem 2016-05-10 11:44:56 +00:00
WatchedItemStoreIntegrationTest.php Remove WatchedItemStore::getDefaultInstance 2016-05-06 08:47:37 +00:00
WatchedItemStoreUnitTest.php Remove WatchedItemStore::getDefaultInstance 2016-05-06 08:47:37 +00:00
WatchedItemUnitTest.php Make WatchedItemStore use MediaWikiServices 2016-05-06 08:47:29 +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 Remove support for $wgWellFormedXml=false 2016-05-12 17:40:01 -04:00
XmlTest.php Remove support for $wgWellFormedXml=false 2016-05-12 17:40:01 -04:00