X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FResourceLoaderTestCase.php;h=f75cc2294cb61a409cfbf22b754a533d5f99a110;hb=133f2e99e7e78f329a913b912f66ffc5879ce39a;hp=d8f89fb6bc4ea179cb0fbd5a3d0becde8f1e6d0e;hpb=3aa1cd89d574283c5749710d7b80182d056ae146;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/ResourceLoaderTestCase.php b/tests/phpunit/ResourceLoaderTestCase.php index d8f89fb6bc..f75cc2294c 100644 --- a/tests/phpunit/ResourceLoaderTestCase.php +++ b/tests/phpunit/ResourceLoaderTestCase.php @@ -153,6 +153,22 @@ class ResourceLoaderTestModule extends ResourceLoaderModule { } } +class ResourceLoaderFileTestModule extends ResourceLoaderFileModule { + protected $lessVars = []; + + public function __construct( $options = [], $test = [] ) { + parent::__construct( $options ); + + foreach ( $test as $key => $value ) { + $this->$key = $value; + } + } + + public function getLessVars( ResourceLoaderContext $context ) { + return $this->lessVars; + } +} + class ResourceLoaderFileModuleTestModule extends ResourceLoaderFileModule { }