Actually run the Less compilation tests
authorAntoine Musso <hashar@free.fr>
Mon, 27 Jul 2015 16:08:48 +0000 (18:08 +0200)
committerAntoine Musso <hashar@free.fr>
Mon, 27 Jul 2015 16:26:47 +0000 (18:26 +0200)
The testcase overrides the getName() method which is used by PHPUnit to
filter out invalid classes.  Remove the method to let PHPUnit pick up
the tests.

Tested locally using:

 php phpunit.php --debug --filter testLessFileCompilation

Bug: T106780
Change-Id: I5a59d69c96273725c2d4ca78d5e1b7303dd5cbf2

tests/phpunit/LessFileCompilationTest.php

index df4690a..73fa0b5 100644 (file)
@@ -48,10 +48,6 @@ class LessFileCompilationTest extends ResourceLoaderTestCase {
                $this->assertNotNull( $compiler->compileFile( $this->file ) );
        }
 
-       public function getName( $withDataSet = true ) {
-               return $this->toString();
-       }
-
        public function toString() {
                $moduleName = $this->module->getName();