MediaWiki REL1_31
LessTestSuite.php
Go to the documentation of this file.
1<?php
2
6class LessTestSuite extends PHPUnit_Framework_TestSuite {
7 public function __construct() {
8 parent::__construct();
9
11
12 foreach ( $resourceLoader->getModuleNames() as $name ) {
13 $module = $resourceLoader->getModule( $name );
14 if ( !$module || !$module instanceof ResourceLoaderFileModule ) {
15 continue;
16 }
17
18 foreach ( $module->getAllStyleFiles() as $styleFile ) {
19 // TODO (phuedx, 2014-03-19) The
20 // ResourceLoaderFileModule class shouldn't
21 // know how to get a file's extension.
22 if ( $module->getStyleSheetLang( $styleFile ) !== 'less' ) {
23 continue;
24 }
25
26 $this->addTest( new LessFileCompilationTest( $styleFile, $module ) );
27 }
28 }
29 }
30
31 public static function suite() {
32 return new static;
33 }
34}
Modelled on Sebastian Bergmann's PHPUnit_Extensions_PhptTestCase class.
ResourceLoader module based on local JavaScript/CSS files.
Dynamic JavaScript and CSS resource loading system.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext such as when responding to a resource loader request or generating HTML output & $resourceLoader
Definition hooks.txt:2818