wiki.techinc.nl/tests/phpunit/structure
Timo Tijhof a186dc62fd resourceloader: Instantiate main class via ServiceWiring
It also removes some code duplication which is nice.

This unlocks various future changes, including:

* Making the `$config` parameter mandatory for the ResourceLoader class
  constructor, which currently falls back to global state.
  This should be deprecated and removed.

* Making it possible to instantiate the ResourceLoader class
  without all the default MW modules being registered from
  global state. E.g. move MW module registration from main class
  constructor to ServiceWiring, and remove the 'EmptyResourceLoader'
  class hack from unit tests, and use regular 'new ResourceLoader'
  instead.

* Making ResourceLoader a standalone library (some day),
  e.g. allowing it to be instantiated from a basic PHP script,
  in a way that is still useful and perhaps able to serve
  (most) RL modules without MW itself.

Bug: T32956
Change-Id: I4939f296c705b268e9cf8de635e923a739410470
2019-02-18 17:55:09 +00:00
..
ApiPrefixUniquenessTest.php test: Assert that API generators have unique prefixes 2018-08-17 17:31:22 -07:00
ApiStructureTest.php Add @coversNothing for left over tests and enable sniff 2019-02-02 21:53:40 -08:00
AutoLoaderStructureTest.php Remove array_unique() on expected classes in checkAutoLoadConf() 2018-11-30 00:22:06 +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 Add @coversNothing for left over tests and enable sniff 2019-02-02 21:53:40 -08: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: Instantiate main class via ServiceWiring 2019-02-18 17:55:09 +00:00
SpecialPageFatalTest.php Add @coversNothing for left over tests and enable sniff 2019-02-02 21:53:40 -08:00
StructureTest.php StructureTest::testUnitTestFileNamesEndWithTest() should not shell out 2018-09-18 20:34:28 +02:00