typo in @cover statement
authorAntoine Musso <hashar@free.fr>
Thu, 14 Mar 2013 03:56:42 +0000 (04:56 +0100)
committerAntoine Musso <hashar@free.fr>
Thu, 14 Mar 2013 03:56:42 +0000 (04:56 +0100)
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

index 3dc5e82..a906785 100644 (file)
@@ -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 ) {