wiki.techinc.nl/tests/phpunit/structure
Tim Starling 5322107191 Reset services before every test
Trying to avoid resetting services introduces a lot of complexity and
several bugs. We were doing a reset for 70% of @group Database tests
anyway.

Instead:

* Reset services at the start of MediaWikiTestCase::run().
* Capture the actual original service container instead of making a
  special shared service container.
* The test-isolated local service container can now only be initialised
  non-statically. Revert the recent conversion of overrideMwServices()
  to static.
* Store a reference to the local service container in the test case
  object. In MediaWikiTestCase, always use the original or local service
  container directly, to avoid confusion about which one is active at
  the time.
* Remove a lot of unnecessary teardown
* Always call ServiceContainer::destroy() before forceGlobalInstance()
  since the memory is not otherwise freed.

Change-Id: I4a17c1c7ec92c14e3bc471f0216473ebe19477b9
2018-09-03 16:38:58 +00:00
..
ApiPrefixUniquenessTest.php test: Assert that API generators have unique prefixes 2018-08-17 17:31:22 -07:00
ApiStructureTest.php API: Introduce "templated parameters" 2018-05-16 16:19:31 -04:00
AutoLoaderStructureTest.php Revert "Use pathinfo() in AutoLoaderStructureTest::testPSR4Completeness" 2018-06-25 12:38:07 +00:00
AvailableRightsTest.php Check for right-* messages as a structure test 2018-07-26 14:14:54 -07:00
ContentHandlerSanityTest.php Add @coversNothing to tests that don't cover specific PHP classes 2018-06-12 13:27:40 -07:00
DatabaseIntegrationTest.php rdbms: Refactor DatabaseTest 2017-07-20 18:23:37 -07:00
ExtensionJsonValidationTest.php Add @coversNothing to tests that don't cover specific PHP classes 2018-06-12 13:27:40 -07:00
ResourcesTest.php resourceloader: Embed 'mediawiki' directly in startup response 2018-06-27 17:06:35 +00:00
SpecialPageFatalTest.php Reset services before every test 2018-09-03 16:38:58 +00:00
StructureTest.php Add @coversNothing to tests that don't cover specific PHP classes 2018-06-12 13:27:40 -07:00