wiki.techinc.nl/tests/phpunit/includes/resourceloader
Andrew Otto e35f53316c resourceloader: Support passing extra arguments to packageFiles callback
Currently packageFiles callbacks take 2 parameters, $context and $config.
This patch allows for specifying an extra parameter in the packageFiles
definition that will be passed to the callback.  Example:

  'callback' => function ( $context, $config, $extra ) { ... },
  'callbackParam => [ 'this is val 1', 'this is val 2' ],

The callback will be called with the usual $context and $config
parameters, and the extra array is passed as third parameter.

Bug: T233634
Change-Id: Ie11874665f4f9a557d4e394dcab3a972887e8126
2019-10-21 15:07:53 -04:00
..
templates
DerivativeResourceLoaderContextTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MessageBlobStoreTest.php Begin cleaning up PHPUnit 4 code from tests 2019-10-04 14:19:05 -07:00
ResourceLoaderClientHtmlTest.php Merge "resourceloader: Compile documentElement.className server-side" 2019-09-03 21:04:23 +00:00
ResourceLoaderContextTest.php tests: Replace PHPUnit's loose assertEquals(null) with assertNull() 2019-09-27 19:15:38 +00:00
ResourceLoaderFileModuleTest.php resourceloader: Support passing extra arguments to packageFiles callback 2019-10-21 15:07:53 -04:00
ResourceLoaderImageModuleTest.php resourceloader: Convert ImageModule test to stricter unit test 2019-09-24 23:17:31 +00:00
ResourceLoaderLessVarFileModuleTest.php Add missing empty lines between methods 2019-01-15 19:14:35 +00:00
ResourceLoaderModuleTest.php Replace setExpectedException with two args 2019-10-05 16:14:05 +00:00
ResourceLoaderOOUIImageModuleTest.php Use ExtensionRegistry::setAttributeForTest() instead of Reflection 2019-06-02 21:08:07 -04:00
ResourceLoaderSkinModuleTest.php Remove covers validator trait where it is not needed 2019-05-17 16:49:31 +02:00
ResourceLoaderStartUpModuleTest.php resourceloader: Add $context to static functions in ResourceLoader 2019-09-27 18:35:55 +02:00
ResourceLoaderTest.php Replace setExpectedException with two args 2019-10-05 16:14:05 +00:00
ResourceLoaderWikiModuleTest.php resourceloader: Improve ResourceLoaderWikiModule test coverage 2019-07-25 23:35:21 +01:00