MediaWiki  1.23.2
checkLess.php
Go to the documentation of this file.
1 <?php
24 require_once __DIR__ . '/Maintenance.php';
25 require_once 'PHPUnit/Autoload.php';
26 
30 class CheckLess extends Maintenance {
31 
32  public function __construct() {
33  parent::__construct();
34  $this->mDescription = 'Checks LESS files for errors by running the LessTestSuite PHPUnit test suite';
35  }
36 
37  public function execute() {
38  global $IP;
39 
40  // NOTE (phuedx, 2014-03-26) wgAutoloadClasses isn't set up
41  // by either of the dependencies at the top of the file, so
42  // require it here.
43  require_once __DIR__ . '/../tests/TestsAutoLoader.php';
44 
45  $textUICommand = new PHPUnit_TextUI_Command();
46  $argv = array(
47  "$IP/tests/phpunit/phpunit.php",
48  "$IP/tests/phpunit/suites/LessTestSuite.php"
49  );
50  $textUICommand->run( $argv );
51  }
52 }
53 
54 $maintClass = 'CheckLess';
55 require_once RUN_MAINTENANCE_IF_MAIN;
$maintClass
$maintClass
Definition: checkLess.php:54
CheckLess\__construct
__construct()
Default constructor.
Definition: checkLess.php:32
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
CheckLess\execute
execute()
Do the actual work.
Definition: checkLess.php:37
RUN_MAINTENANCE_IF_MAIN
require_once RUN_MAINTENANCE_IF_MAIN
Definition: maintenance.txt:50
Maintenance
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
Definition: maintenance.txt:39
CheckLess
Definition: checkLess.php:30
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
global
when a variable name is used in a it is silently declared as a new masking the global
Definition: design.txt:93
$IP
$IP
Definition: WebStart.php:88