InstallDocFormatter: Add missing @covers scope
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 22 Nov 2017 19:01:54 +0000 (11:01 -0800)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 22 Nov 2017 19:01:54 +0000 (11:01 -0800)
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

includes/installer/InstallDocFormatter.php
tests/phpunit/includes/installer/InstallDocFormatterTest.php

index 4163e2f..08cfd86 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 class InstallDocFormatter {
-       static function format( $text ) {
+       public static function format( $text ) {
                $obj = new self( $text );
 
                return $obj->execute();
index 36b6d64..9584d4b 100644 (file)
@@ -1,12 +1,8 @@
 <?php
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
 
 class InstallDocFormatterTest extends MediaWikiTestCase {
        /**
-        * @covers InstallDocFormatter::format
+        * @covers InstallDocFormatter
         * @dataProvider provideDocFormattingTests
         */
        public function testFormat( $expected, $unformattedText, $message = '' ) {