mediawiki/oauthclient-php: master (log #262645)

sourcepatches
From 16abcaa9b606a03a5496f95b55c64198c572cf5a Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Mon, 3 May 2021 12:00:34 +0000
Subject: [PATCH] build: Updating composer dependencies
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0

Change-Id: I923aa261c54046ffe86f63cf4ba93b124afd0555
---
 composer.json                         | 4 ++--
 tests/SignatureMethod/RsaSha1Test.php | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/composer.json b/composer.json
index 651e5cf..0bb6db7 100644
--- a/composer.json
+++ b/composer.json
@@ -34,10 +34,10 @@
 		}
 	},
 	"require-dev": {
-		"mediawiki/mediawiki-codesniffer": "35.0.0",
+		"mediawiki/mediawiki-codesniffer": "36.0.0",
 		"mediawiki/minus-x": "1.1.1",
 		"php-parallel-lint/php-console-highlighter": "0.5.0",
-		"php-parallel-lint/php-parallel-lint": "1.2.0",
+		"php-parallel-lint/php-parallel-lint": "1.3.0",
 		"phpunit/phpunit": "^8.5"
 	},
 	"autoload-dev": {
diff --git a/tests/SignatureMethod/RsaSha1Test.php b/tests/SignatureMethod/RsaSha1Test.php
index 4bbe46a..cc3dcc1 100644
--- a/tests/SignatureMethod/RsaSha1Test.php
+++ b/tests/SignatureMethod/RsaSha1Test.php
@@ -75,7 +75,7 @@ EOD;
 
 		$this->method = $this->getMockBuilder(
 			'MediaWiki\OAuthClient\SignatureMethod\RsaSha1' )
-			->setMethods( [ 'fetchPrivateCert', 'fetchPublicCert' ] )
+			->onlyMethods( [ 'fetchPrivateCert', 'fetchPublicCert' ] )
 			->getMock();
 
 		$this->method->method( 'fetchPrivateCert' )
-- 
2.20.1

$ date
Mon May  3 12:00:21 UTC 2021

$ git clone file:///srv/git/mediawiki-oauthclient-php.git repo --depth=1 -b master
Cloning into 'repo'...

$ git config user.name libraryupgrader

$ git config user.email tools.libraryupgrader@tools.wmflabs.org

$ git submodule update --init

$ grr init
Installed commit-msg hook.

$ git show-ref refs/heads/master
520ff24480137878f5c93a3c97a8035416fe1fac refs/heads/master

$ composer install
Loading composer repositories with package information
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
Package operations: 47 installs, 0 updates, 0 removals
  - Installing squizlabs/php_codesniffer (3.5.8): Loading from cache
  - Installing composer/spdx-licenses (1.5.5): Loading from cache
  - Installing composer/semver (3.2.4): Loading from cache
  - Installing mediawiki/mediawiki-codesniffer (v35.0.0): Loading from cache
  - Installing symfony/polyfill-php80 (v1.22.1): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.22.1): Loading from cache
  - Installing symfony/polyfill-intl-normalizer (v1.22.1): Loading from cache
  - Installing symfony/polyfill-intl-grapheme (v1.22.1): Loading from cache
  - Installing symfony/polyfill-ctype (v1.22.1): Loading from cache
  - Installing symfony/string (v5.2.6): Loading from cache
  - Installing psr/container (1.1.1): Loading from cache
  - Installing symfony/service-contracts (v2.4.0): Loading from cache
  - Installing symfony/polyfill-php73 (v1.22.1): Loading from cache
  - Installing symfony/console (v5.2.7): Loading from cache
  - Installing psr/log (1.1.4): Loading from cache
  - Installing mediawiki/minus-x (1.1.1): Loading from cache
  - Installing php-parallel-lint/php-console-color (v0.3): Loading from cache
  - Installing php-parallel-lint/php-console-highlighter (v0.5): Loading from cache
  - Installing php-parallel-lint/php-parallel-lint (v1.2.0): Loading from cache
  - Installing sebastian/version (2.0.1): Loading from cache
  - Installing sebastian/type (1.1.4): Loading from cache
  - Installing sebastian/resource-operations (2.0.2): Loading from cache
  - Installing sebastian/recursion-context (3.0.1): Loading from cache
  - Installing sebastian/object-reflector (1.1.2): Loading from cache
  - Installing sebastian/object-enumerator (3.0.4): Loading from cache
  - Installing sebastian/global-state (3.0.1): Loading from cache
  - Installing sebastian/exporter (3.1.3): Loading from cache
  - Installing sebastian/environment (4.2.4): Loading from cache
  - Installing sebastian/diff (3.0.3): Loading from cache
  - Installing sebastian/comparator (3.0.3): Loading from cache
  - Installing phpunit/php-timer (2.1.3): Loading from cache
  - Installing phpunit/php-text-template (1.2.1): Loading from cache
  - Installing phpunit/php-file-iterator (2.0.3): Loading from cache
  - Installing theseer/tokenizer (1.2.0): Loading from cache
  - Installing sebastian/code-unit-reverse-lookup (1.0.2): Loading from cache
  - Installing phpunit/php-token-stream (4.0.4): Loading from cache
  - Installing phpunit/php-code-coverage (7.0.14): Loading from cache
  - Installing doctrine/instantiator (1.4.0): Loading from cache
  - Installing phpdocumentor/reflection-common (2.2.0): Loading from cache
  - Installing webmozart/assert (1.10.0): Loading from cache
  - Installing phpdocumentor/type-resolver (1.4.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (5.2.2): Loading from cache
  - Installing phpspec/prophecy (1.13.0): Loading from cache
  - Installing phar-io/version (3.1.0): Loading from cache
  - Installing phar-io/manifest (2.0.1): Loading from cache
  - Installing myclabs/deep-copy (1.10.2): Loading from cache
  - Installing phpunit/phpunit (8.5.15): Loading from cache
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.7.2)
phpunit/phpunit suggests installing phpunit/php-invoker (^2.0.0)
phpunit/phpunit suggests installing ext-soap (*)
phpunit/phpunit suggests installing ext-xdebug (*)
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files
30 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Upgrading c:mediawiki/mediawiki-codesniffer from 35.0.0 -> 36.0.0
Upgrading c:php-parallel-lint/php-parallel-lint from 1.2.0 -> 1.3.0
$ composer update
Loading composer repositories with package information
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
Package operations: 0 installs, 3 updates, 0 removals
  - Updating squizlabs/php_codesniffer (3.5.8 => 3.6.0): Loading from cache
  - Updating mediawiki/mediawiki-codesniffer (v35.0.0 => v36.0.0): Loading from cache
  - Updating php-parallel-lint/php-parallel-lint (v1.2.0 => v1.3.0): Loading from cache
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files
30 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

{'PEAR.Functions.ValidDefaultValue.NotAtEnd'}
Tests fail!
$ vendor/bin/phpcbf

PHPCBF RESULT SUMMARY
----------------------------------------------------------------------
FILE                                                  FIXED  REMAINING
----------------------------------------------------------------------
/src/repo/tests/SignatureMethod/RsaSha1Test.php       1      0
----------------------------------------------------------------------
A TOTAL OF 1 ERROR WERE FIXED IN 1 FILE
----------------------------------------------------------------------

Time: 364ms; Memory: 12MB



$ git checkout .phpcs.xml

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
30 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

$ composer test
> parallel-lint . --exclude vendor
PHP 7.3.27 | 10 parallel jobs
.......................                                      23/23 (100 %)


Checked 23 files in 0.1 seconds
No syntax error found
> phpunit $PHPUNIT_ARGS
PHPUnit 8.5.15 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.3.27-1~deb10u1
Configuration: /src/repo/phpunit.xml.dist

..................................                                34 / 34 (100%)

Time: 46 ms, Memory: 6.00 MB

OK (34 tests, 107 assertions)
> phpcs -p -s
....................... 23 / 23 (100%)


Time: 312ms; Memory: 12MB

> minus-x check .
MinusX
======
Processing /src/repo...
..................................
All good!

$ git add .

$ git commit -F /tmp/tmpt_8_wexl
[master 16abcaa] build: Updating composer dependencies
 2 files changed, 3 insertions(+), 3 deletions(-)

$ git format-patch HEAD~1 --stdout
From 16abcaa9b606a03a5496f95b55c64198c572cf5a Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Mon, 3 May 2021 12:00:34 +0000
Subject: [PATCH] build: Updating composer dependencies
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0

Change-Id: I923aa261c54046ffe86f63cf4ba93b124afd0555
---
 composer.json                         | 4 ++--
 tests/SignatureMethod/RsaSha1Test.php | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/composer.json b/composer.json
index 651e5cf..0bb6db7 100644
--- a/composer.json
+++ b/composer.json
@@ -34,10 +34,10 @@
 		}
 	},
 	"require-dev": {
-		"mediawiki/mediawiki-codesniffer": "35.0.0",
+		"mediawiki/mediawiki-codesniffer": "36.0.0",
 		"mediawiki/minus-x": "1.1.1",
 		"php-parallel-lint/php-console-highlighter": "0.5.0",
-		"php-parallel-lint/php-parallel-lint": "1.2.0",
+		"php-parallel-lint/php-parallel-lint": "1.3.0",
 		"phpunit/phpunit": "^8.5"
 	},
 	"autoload-dev": {
diff --git a/tests/SignatureMethod/RsaSha1Test.php b/tests/SignatureMethod/RsaSha1Test.php
index 4bbe46a..cc3dcc1 100644
--- a/tests/SignatureMethod/RsaSha1Test.php
+++ b/tests/SignatureMethod/RsaSha1Test.php
@@ -75,7 +75,7 @@ EOD;
 
 		$this->method = $this->getMockBuilder(
 			'MediaWiki\OAuthClient\SignatureMethod\RsaSha1' )
-			->setMethods( [ 'fetchPrivateCert', 'fetchPublicCert' ] )
+			->onlyMethods( [ 'fetchPrivateCert', 'fetchPublicCert' ] )
 			->getMock();
 
 		$this->method->method( 'fetchPrivateCert' )
-- 
2.20.1

Source code is licensed under the AGPL.