Add @covers tags to logging tests
[lhc/web/wiklou.git] / tests / phpunit / includes / logging / MergeLogFormatterTest.php
index 2ff0ddf..1978f1b 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 
+/**
+ * @covers MergeLogFormatter
+ */
 class MergeLogFormatterTest extends LogFormatterTestCase {
 
        /**
@@ -8,54 +11,54 @@ class MergeLogFormatterTest extends LogFormatterTestCase {
         * Do not change the existing data, just add a new database row
         */
        public static function provideMergeLogDatabaseRows() {
-               return array(
+               return [
                        // Current format
-                       array(
-                               array(
+                       [
+                               [
                                        'type' => 'merge',
                                        'action' => 'merge',
                                        'comment' => 'Merge comment',
                                        'namespace' => NS_MAIN,
                                        'title' => 'OldPage',
-                                       'params' => array(
+                                       'params' => [
                                                '4::dest' => 'NewPage',
                                                '5::mergepoint' => '20140804160710',
-                                       ),
-                               ),
-                               array(
+                                       ],
+                               ],
+                               [
                                        'text' => 'User merged OldPage into NewPage (revisions up to 16:07, 4 August 2014)',
-                                       'api' => array(
+                                       'api' => [
                                                'dest_ns' => 0,
                                                'dest_title' => 'NewPage',
                                                'mergepoint' => '2014-08-04T16:07:10Z',
-                                       ),
-                               ),
-                       ),
+                                       ],
+                               ],
+                       ],
 
                        // Legacy format
-                       array(
-                               array(
+                       [
+                               [
                                        'type' => 'merge',
                                        'action' => 'merge',
                                        'comment' => 'merge comment',
                                        'namespace' => NS_MAIN,
                                        'title' => 'OldPage',
-                                       'params' => array(
+                                       'params' => [
                                                'NewPage',
                                                '20140804160710',
-                                       ),
-                               ),
-                               array(
+                                       ],
+                               ],
+                               [
                                        'legacy' => true,
                                        'text' => 'User merged OldPage into NewPage (revisions up to 16:07, 4 August 2014)',
-                                       'api' => array(
+                                       'api' => [
                                                'dest_ns' => 0,
                                                'dest_title' => 'NewPage',
                                                'mergepoint' => '2014-08-04T16:07:10Z',
-                                       ),
-                               ),
-                       ),
-               );
+                                       ],
+                               ],
+                       ],
+               ];
        }
 
        /**