From: Timo Tijhof Date: Wed, 22 Nov 2017 19:01:54 +0000 (-0800) Subject: InstallDocFormatter: Add missing @covers scope X-Git-Tag: 1.31.0-rc.0~1427^2 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=d8cf850032e78b0252d6b5801e8d0754b3411594;p=lhc%2Fweb%2Fwiklou.git InstallDocFormatter: Add missing @covers scope The format() method is a one-line wrapper around execute(), which is the real method being tested here. Given the class doesn't contain any other methods, increase the scope to the whole class. Change-Id: I8b2c7736c6708c0915a9ce15fef0dc85c63621ea --- diff --git a/includes/installer/InstallDocFormatter.php b/includes/installer/InstallDocFormatter.php index 4163e2f958..08cfd8689a 100644 --- a/includes/installer/InstallDocFormatter.php +++ b/includes/installer/InstallDocFormatter.php @@ -21,7 +21,7 @@ */ class InstallDocFormatter { - static function format( $text ) { + public static function format( $text ) { $obj = new self( $text ); return $obj->execute(); diff --git a/tests/phpunit/includes/installer/InstallDocFormatterTest.php b/tests/phpunit/includes/installer/InstallDocFormatterTest.php index 36b6d64f79..9584d4b8c4 100644 --- a/tests/phpunit/includes/installer/InstallDocFormatterTest.php +++ b/tests/phpunit/includes/installer/InstallDocFormatterTest.php @@ -1,12 +1,8 @@