From: Timo Tijhof Date: Tue, 27 Jun 2017 04:44:11 +0000 (-0700) Subject: resourceloader: Add @covers for stripBom and makeModuleResponse tests X-Git-Tag: 1.31.0-rc.0~2869^2~1 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=580dbeba7af47c480f094d1e6aa9195123338a6d;hp=3a0f138dc83a4f3c25478e5ba07eabcd7ec2392a;p=lhc%2Fweb%2Fwiklou.git resourceloader: Add @covers for stripBom and makeModuleResponse tests Change-Id: Ie32178cdd03a79a0ab871122acf081c65e5a9f4d --- diff --git a/tests/phpunit/includes/resourceloader/ResourceLoaderFileModuleTest.php b/tests/phpunit/includes/resourceloader/ResourceLoaderFileModuleTest.php index 9a03d3ca7c..9750ea49de 100644 --- a/tests/phpunit/includes/resourceloader/ResourceLoaderFileModuleTest.php +++ b/tests/phpunit/includes/resourceloader/ResourceLoaderFileModuleTest.php @@ -288,6 +288,9 @@ class ResourceLoaderFileModuleTest extends ResourceLoaderTestCase { } } + /** + * @covers ResourceLoaderFileModule::stripBom + */ public function testBomConcatenation() { $basePath = __DIR__ . '/../../data/css'; $testModule = new ResourceLoaderFileModule( [ diff --git a/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php b/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php index 79d0784c27..c9d103defe 100644 --- a/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php +++ b/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php @@ -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();