Add @covers tags to specials tests
[lhc/web/wiklou.git] / tests / phpunit / includes / specials / SpecialMIMESearchTest.php
index 14d1968..a845938 100644 (file)
@@ -3,13 +3,16 @@
  * @group Database
  */
 
+/**
+ * @covers MIMEsearchPage
+ */
 class SpecialMIMESearchTest extends MediaWikiTestCase {
 
-       /** @var MIMESearchPage */
+       /** @var MIMEsearchPage */
        private $page;
 
        function setUp() {
-               $this->page = new MIMESearchPage;
+               $this->page = new MIMEsearchPage;
                $context = new RequestContext();
                $context->setTitle( Title::makeTitle( NS_SPECIAL, 'MIMESearch' ) );
                $context->setRequest( new FauxRequest() );
@@ -37,12 +40,12 @@ class SpecialMIMESearchTest extends MediaWikiTestCase {
        }
 
        function providerMimeFiltering() {
-               return array(
-                       array( 'image/gif', 'image', 'gif' ),
-                       array( 'image/png', 'image', 'png' ),
-                       array( 'application/pdf', 'application', 'pdf' ),
-                       array( 'image/*', 'image', null ),
-                       array( 'multipart/*', 'multipart', null ),
-               );
+               return [
+                       [ 'image/gif', 'image', 'gif' ],
+                       [ 'image/png', 'image', 'png' ],
+                       [ 'application/pdf', 'application', 'pdf' ],
+                       [ 'image/*', 'image', null ],
+                       [ 'multipart/*', 'multipart', null ],
+               ];
        }
 }