4 * @author Sam Smith <samsmith@wikimedia.org>
6 class LessTestSuite
extends PHPUnit_Framework_TestSuite
{
7 public function __construct() {
10 $resourceLoader = new ResourceLoader();
12 foreach ( $resourceLoader->getModuleNames() as $name ) {
13 $module = $resourceLoader->getModule( $name );
14 if ( !$module ||
!$module instanceof ResourceLoaderFileModule
) {
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' ) {
26 $this->addTest( new LessFileCompilationTest( $styleFile, $module ) );
31 public static function suite() {