Merge "CurlHttpRequest: Follow redirects even under open_basedir"
[lhc/web/wiklou.git] / tests / phpunit / LessFileCompilationTest.php
index 71e0f4b..eec02ed 100644 (file)
@@ -38,18 +38,14 @@ class LessFileCompilationTest extends ResourceLoaderTestCase {
                        "$thisString must refer to a readable file"
                );
 
-               $rlContext = static::getResourceLoaderContext();
+               $rlContext = $this->getResourceLoaderContext();
 
                // Bleh
                $method = new ReflectionMethod( $this->module, 'getLessCompiler' );
                $method->setAccessible( true );
                $compiler = $method->invoke( $this->module, $rlContext );
 
-               $this->assertNotNull( $compiler->compileFile( $this->file ) );
-       }
-
-       public function getName( $withDataSet = true ) {
-               return $this->toString();
+               $this->assertNotNull( $compiler->parseFile( $this->file )->getCss() );
        }
 
        public function toString() {