diff options
author | libraryupgrader <tools.libraryupgrader@tools.wmflabs.org> | 2021-07-22 03:11:47 +0000 |
---|---|---|
committer | DannyS712 <dannys712.wiki@gmail.com> | 2021-07-22 03:36:05 +0000 |
commit | 5357695270161bce1f6dbaccc96645791f17a013 (patch) | |
tree | 7e960bac35ef0f4a1bb940a1e09822169b8d5622 /tests/phpunit/structure/RestStructureTest.php | |
parent | a4fa292eade4be075d3b0e986d92c74e613295fc (diff) | |
download | mediawikicore-5357695270161bce1f6dbaccc96645791f17a013.tar.gz mediawikicore-5357695270161bce1f6dbaccc96645791f17a013.zip |
build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0
The following sniffs now pass and were enabled:
* Generic.ControlStructures.InlineControlStructure
* MediaWiki.PHPUnit.AssertCount.NotUsed
npm:
* svgo: 2.3.0 → 2.3.1
* https://npmjs.com/advisories/1754 (CVE-2021-33587)
Change-Id: I2a9bbee2fecbf7259876d335f565ece4b3622426
Diffstat (limited to 'tests/phpunit/structure/RestStructureTest.php')
-rw-r--r-- | tests/phpunit/structure/RestStructureTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/phpunit/structure/RestStructureTest.php b/tests/phpunit/structure/RestStructureTest.php index 8da8b9668463..a27a9271bd61 100644 --- a/tests/phpunit/structure/RestStructureTest.php +++ b/tests/phpunit/structure/RestStructureTest.php @@ -45,7 +45,7 @@ class RestStructureTest extends MediaWikiIntegrationTestCase { /** * @dataProvider providePathParameters */ - public function testPathParameters( array $spec ) : void { + public function testPathParameters( array $spec ): void { $router = TestingAccessWrapper::newFromObject( $this->getRouter() ); $request = new RequestData(); $handler = $router->createHandler( $request, $spec ); @@ -82,7 +82,7 @@ class RestStructureTest extends MediaWikiIntegrationTestCase { $this->addToAssertionCount( 1 ); } - public function providePathParameters() : Iterator { + public function providePathParameters(): Iterator { $router = TestingAccessWrapper::newFromObject( $this->getRouter() ); foreach ( $router->getAllRoutes() as $spec ) { @@ -96,7 +96,7 @@ class RestStructureTest extends MediaWikiIntegrationTestCase { /** * @dataProvider provideParameters */ - public function testParameters( array $spec, string $name, $settings ) : void { + public function testParameters( array $spec, string $name, $settings ): void { static $sources = [ 'path', 'query', 'post' ]; $router = TestingAccessWrapper::newFromObject( $this->getRouter() ); @@ -146,7 +146,7 @@ class RestStructureTest extends MediaWikiIntegrationTestCase { } } - public function provideParameters() : Iterator { + public function provideParameters(): Iterator { $router = TestingAccessWrapper::newFromObject( $this->getRouter() ); $request = new RequestData(); |