More complete, more straightforward JobQueueMemoryTest
[mediawiki.git] / tests / phpunit / suites / LessTestSuite.php
blob26a784adcaa0876a622fbf29cc8e6d66698bb7e9
1 <?php
3 /**
4 * @author Sam Smith <samsmith@wikimedia.org>
5 */
6 class LessTestSuite extends PHPUnit_Framework_TestSuite {
7 public function __construct() {
8 parent::__construct();
10 $resourceLoader = new ResourceLoader();
12 foreach ( $resourceLoader->getModuleNames() as $name ) {
13 $module = $resourceLoader->getModule( $name );
14 if ( !$module || !$module instanceof ResourceLoaderFileModule ) {
15 continue;
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;
26 $this->addTest( new LessFileCompilationTest( $styleFile, $module ) );
31 public static function suite() {
32 return new static;