X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FTitleArrayFromResultTest.php;h=88822140488f5d5e9f2c5e9ecfc85faecc049c92;hb=37ae7b98be7f57b83ec58b7d8fa6ff17a7907992;hp=f06208b3e0a878ddea22c41fae215f92c5663aa9;hpb=74174fca253b9a759d7402f09b7fc37d5de0e9be;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/TitleArrayFromResultTest.php b/tests/phpunit/includes/TitleArrayFromResultTest.php index f06208b3e0..8882214048 100644 --- a/tests/phpunit/includes/TitleArrayFromResultTest.php +++ b/tests/phpunit/includes/TitleArrayFromResultTest.php @@ -6,6 +6,8 @@ */ 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 ], + ]; } /**