X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flibs%2Fcomposer%2FComposerJsonTest.php;h=3cde3e23442a2ab03be6c53bdb6bc067fe76762b;hb=8e7803aae9cdc7d2ed855762566898e45a6cf84e;hp=0c58b65ac75f930dea85a6e0e2e7708c8ea513f9;hpb=72bc1e8cf87ec368227fdae648ab7e5037a55bcf;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/libs/composer/ComposerJsonTest.php b/tests/phpunit/includes/libs/composer/ComposerJsonTest.php index 0c58b65ac7..3cde3e2344 100644 --- a/tests/phpunit/includes/libs/composer/ComposerJsonTest.php +++ b/tests/phpunit/includes/libs/composer/ComposerJsonTest.php @@ -12,10 +12,10 @@ class ComposerJsonTest extends MediaWikiTestCase { } public static function provideGetHash() { - return array( - array( 'json', 'cc6e7fc565b246cb30b0cac103a2b31e' ), - array( 'json2', '19921dd1fc457f1b00561da932432001' ), - ); + return [ + [ 'json', 'cc6e7fc565b246cb30b0cac103a2b31e' ], + [ 'json2', '19921dd1fc457f1b00561da932432001' ], + ]; } /** @@ -28,23 +28,24 @@ class ComposerJsonTest extends MediaWikiTestCase { } /** + * @covers ComposerJson::__construct * @covers ComposerJson::getRequiredDependencies */ public function testGetRequiredDependencies() { $json = new ComposerJson( $this->json ); - $this->assertArrayEquals( array( + $this->assertArrayEquals( [ 'cdb/cdb' => '1.0.0', 'cssjanus/cssjanus' => '1.1.1', 'leafo/lessphp' => '0.5.0', 'psr/log' => '1.0.0', - ), $json->getRequiredDependencies(), false, true ); + ], $json->getRequiredDependencies(), false, true ); } public static function provideNormalizeVersion() { - return array( - array( 'v1.0.0', '1.0.0' ), - array( '0.0.5', '0.0.5' ), - ); + return [ + [ 'v1.0.0', '1.0.0' ], + [ '0.0.5', '0.0.5' ], + ]; } /**