Merge "resourceloader: Add @covers for stripBom and makeModuleResponse tests"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 27 Jun 2017 13:18:10 +0000 (13:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 27 Jun 2017 13:18:10 +0000 (13:18 +0000)
1  2 
tests/phpunit/includes/resourceloader/ResourceLoaderTest.php

@@@ -199,7 -199,7 +199,7 @@@ class ResourceLoaderTest extends Resour
         * @covers ResourceLoader::getModule
         */
        public function testGetModuleFactory() {
 -              $factory = function( array $info ) {
 +              $factory = function ( array $info ) {
                        $this->assertArrayHasKey( 'kitten', $info );
                        return new ResourceLoaderTestModule( $info );
                };
@@@ -607,6 -607,8 +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 = [
         * 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();