resourceloader: Add @covers for stripBom and makeModuleResponse tests
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 27 Jun 2017 04:44:11 +0000 (21:44 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 27 Jun 2017 05:15:06 +0000 (22:15 -0700)
Change-Id: Ie32178cdd03a79a0ab871122acf081c65e5a9f4d

tests/phpunit/includes/resourceloader/ResourceLoaderFileModuleTest.php
tests/phpunit/includes/resourceloader/ResourceLoaderTest.php

index 9a03d3c..9750ea4 100644 (file)
@@ -288,6 +288,9 @@ class ResourceLoaderFileModuleTest extends ResourceLoaderTestCase {
                }
        }
 
+       /**
+        * @covers ResourceLoaderFileModule::stripBom
+        */
        public function testBomConcatenation() {
                $basePath = __DIR__ . '/../../data/css';
                $testModule = new ResourceLoaderFileModule( [
index 79d0784..c9d103d 100644 (file)
@@ -607,6 +607,8 @@ mw.example();
         * Verify that when building module content in a load.php response,
         * an exception from one module will not break script output from
         * other modules.
+        *
+        * @covers ResourceLoader::makeModuleResponse
         */
        public function testMakeModuleResponseError() {
                $modules = [
@@ -643,6 +645,8 @@ mw.example();
         * Verify that when building the startup module response,
         * an exception from one module class will not break the entire
         * startup module response. See T152266.
+        *
+        * @covers ResourceLoader::makeModuleResponse
         */
        public function testMakeModuleResponseStartupError() {
                $rl = new EmptyResourceLoader();