From 0e7092026bf1f24aa911ce28e2e43d52dc4e2229 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 14 Mar 2013 04:56:42 +0100 Subject: [PATCH] typo in @cover statement PHP Code Coverage uses the @cover comment statement to limit code coverage to some specific function. The method reference lacked the trailing 's' leading to an error when running coverage: PHP_CodeCoverage_Exception: Trying to @cover not existing method "Title::checkReadPermission". Change-Id: Ie09e804039271ec8f0165c32dc7849ea4be8a3b9 --- tests/phpunit/includes/TitleTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/includes/TitleTest.php b/tests/phpunit/includes/TitleTest.php index 3dc5e82215..a9067852f6 100644 --- a/tests/phpunit/includes/TitleTest.php +++ b/tests/phpunit/includes/TitleTest.php @@ -96,7 +96,7 @@ class TitleTest extends MediaWikiTestCase { * @param string $action * @param array|string|true $expected Required error * - * @covers Title::checkReadPermission + * @covers Title::checkReadPermissions * @dataProvider dataWgWhitelistReadRegexp */ function testWgWhitelistReadRegexp( $whitelistRegexp, $source, $action, $expected ) { -- 2.20.1