MediaWiki  1.23.8
LessTestSuite.php
Go to the documentation of this file.
1 <?php
2 
6 class 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 }
LessTestSuite\__construct
__construct()
Definition: LessTestSuite.php:7
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
$resourceLoader
do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled also a ContextSource error or success such as when responding to a resource loader request or generating HTML output & $resourceLoader
Definition: hooks.txt:1956
ResourceLoaderFileModule
ResourceLoader module based on local JavaScript/CSS files.
Definition: ResourceLoaderFileModule.php:28
$name
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:336
LessFileCompilationTest
Modelled on Sebastian Bergmann's PHPUnit_Extensions_PhptTestCase class.
Definition: LessFileCompilationTest.php:9
ResourceLoader
Dynamic JavaScript and CSS resource loading system.
Definition: ResourceLoader.php:31
LessTestSuite\suite
static suite()
Definition: LessTestSuite.php:31
as
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
Definition: distributors.txt:9
LessTestSuite
Definition: LessTestSuite.php:6