X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FTitleArrayFromResultTest.php;h=88822140488f5d5e9f2c5e9ecfc85faecc049c92;hb=37ae7b98be7f57b83ec58b7d8fa6ff17a7907992;hp=6654a5b6dfc797a8329908ca19ab4e30509a9b7b;hpb=a07ea9326e540e7b7b54685a0dff796cd9e9572f;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/TitleArrayFromResultTest.php b/tests/phpunit/includes/TitleArrayFromResultTest.php index 6654a5b6df..8882214048 100644 --- a/tests/phpunit/includes/TitleArrayFromResultTest.php +++ b/tests/phpunit/includes/TitleArrayFromResultTest.php @@ -1,11 +1,13 @@ 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 ], + ]; } /** @@ -113,7 +115,7 @@ class TitleArrayFromResultTest extends PHPUnit_Framework_TestCase { $this->assertEquals( $expected, $object->valid() ); } - //@todo unit test for key() - //@todo unit test for next() - //@todo unit test for rewind() + // @todo unit test for key() + // @todo unit test for next() + // @todo unit test for rewind() }