Merge "Localize namespaces to inh"
[lhc/web/wiklou.git] / tests / phpunit / includes / TitleArrayFromResultTest.php
index aad435e..8882214 100644 (file)
@@ -1,11 +1,13 @@
 <?php
 
 /**
- * @author Adam Shorland
+ * @author Addshore
  * @covers TitleArrayFromResult
  */
 class TitleArrayFromResultTest extends PHPUnit_Framework_TestCase {
 
+       use MediaWikiCoversValidator;
+
        private function getMockResultWrapper( $row = null, $numRows = 1 ) {
                $resultWrapper = $this->getMockBuilder( 'ResultWrapper' )
                        ->disableOriginalConstructor();
@@ -65,11 +67,11 @@ class TitleArrayFromResultTest extends PHPUnit_Framework_TestCase {
        }
 
        public static function provideNumberOfRows() {
-               return array(
-                       array( 0 ),
-                       array( 1 ),
-                       array( 122 ),
-               );
+               return [
+                       [ 0 ],
+                       [ 1 ],
+                       [ 122 ],
+               ];
        }
 
        /**
@@ -98,10 +100,10 @@ class TitleArrayFromResultTest extends PHPUnit_Framework_TestCase {
        }
 
        public function provideTestValid() {
-               return array(
-                       array( $this->getRowWithTitle(), true ),
-                       array( false, false ),
-               );
+               return [
+                       [ $this->getRowWithTitle(), true ],
+                       [ false, false ],
+               ];
        }
 
        /**