Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update phpunit/phpunit requirement from ^9.6.21 to ^11.4.3 #1457

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
"psr/http-server-middleware": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^9.6.21",
"phpunit/phpunit": "^11.4.3",
"laminas/laminas-diactoros": "^3.5",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-phpunit": "^1.3.15",

Unchanged files with check annotations Beta

$clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock();
$clientRepositoryMock->method('validateClient')->willReturn(false);
$grantMock = $this->getMockForAbstractClass(AbstractGrant::class);

Check failure on line 96 in tests/Exception/OAuthServerExceptionTest.php

GitHub Actions / Static Analysis (8.3, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 96 in tests/Exception/OAuthServerExceptionTest.php

GitHub Actions / Static Analysis (8.4, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 96 in tests/Exception/OAuthServerExceptionTest.php

GitHub Actions / Static Analysis (8.2, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 96 in tests/Exception/OAuthServerExceptionTest.php

GitHub Actions / Static Analysis (8.4, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 96 in tests/Exception/OAuthServerExceptionTest.php

GitHub Actions / Static Analysis (8.3, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.
$grantMock->setClientRepository($clientRepositoryMock);
$abstractGrantReflection = new ReflectionClass($grantMock);
public function testHttpBasicWithPassword(): void
{
/** @var AbstractGrant $grantMock */
$grantMock = $this->getMockForAbstractClass(AbstractGrant::class);

Check failure on line 37 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 37 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 37 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.2, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 37 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 37 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.
$abstractGrantReflection = new ReflectionClass($grantMock);
$serverRequest = (new ServerRequest())->withHeader('Authorization', 'Basic ' . base64_encode('Open:Sesame'));
public function testHttpBasicNoPassword(): void
{
/** @var AbstractGrant $grantMock */
$grantMock = $this->getMockForAbstractClass(AbstractGrant::class);

Check failure on line 50 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 50 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 50 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.2, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 50 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 50 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.
$abstractGrantReflection = new ReflectionClass($grantMock);
$serverRequest = (new ServerRequest())->withHeader('Authorization', 'Basic ' . base64_encode('Open:'));
public function testHttpBasicNotBasic(): void
{
/** @var AbstractGrant $grantMock */
$grantMock = $this->getMockForAbstractClass(AbstractGrant::class);

Check failure on line 63 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 63 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 63 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.2, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 63 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 63 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.
$abstractGrantReflection = new ReflectionClass($grantMock);
$serverRequest = (new ServerRequest())->withHeader('Authorization', 'Foo ' . base64_encode('Open:Sesame'));
public function testHttpBasicCaseInsensitive(): void
{
/** @var AbstractGrant $grantMock */
$grantMock = $this->getMockForAbstractClass(AbstractGrant::class);

Check failure on line 76 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 76 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 76 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.2, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 76 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 76 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.
$abstractGrantReflection = new ReflectionClass($grantMock);
$serverRequest = (new ServerRequest())->withHeader('Authorization', 'bAsIc ' . base64_encode('Open:Sesame'));
public function testHttpBasicNotBase64(): void
{
/** @var AbstractGrant $grantMock */
$grantMock = $this->getMockForAbstractClass(AbstractGrant::class);

Check failure on line 89 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 89 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 89 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.2, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 89 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 89 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.
$abstractGrantReflection = new ReflectionClass($grantMock);
$serverRequest = (new ServerRequest())->withHeader('Authorization', 'Basic ||');
public function testHttpBasicNoColon(): void
{
/** @var AbstractGrant $grantMock */
$grantMock = $this->getMockForAbstractClass(AbstractGrant::class);

Check failure on line 102 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 102 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 102 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.2, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 102 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 102 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.
$abstractGrantReflection = new ReflectionClass($grantMock);
$serverRequest = (new ServerRequest())->withHeader('Authorization', 'Basic ' . base64_encode('OpenSesame'));
$clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock();
/** @var AbstractGrant $grantMock */
$grantMock = $this->getMockForAbstractClass(AbstractGrant::class);

Check failure on line 117 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 117 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 117 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.2, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 117 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 117 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.
$grantMock->setClientRepository($clientRepositoryMock);
$abstractGrantReflection = new ReflectionClass($grantMock);
$clientRepositoryMock->method('validateClient')->willReturn(true);
/** @var AbstractGrant $grantMock */
$grantMock = $this->getMockForAbstractClass(AbstractGrant::class);

Check failure on line 155 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 155 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 155 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.2, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 155 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 155 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.
$grantMock->setClientRepository($clientRepositoryMock);
$abstractGrantReflection = new ReflectionClass($grantMock);
$clientRepositoryMock->method('validateClient')->willReturn(true);
/** @var AbstractGrant $grantMock */
$grantMock = $this->getMockForAbstractClass(AbstractGrant::class);

Check failure on line 182 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 182 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-lowest, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 182 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.2, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 182 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.4, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.

Check failure on line 182 in tests/Grant/AbstractGrantTest.php

GitHub Actions / Static Analysis (8.3, prefer-stable, ubuntu-latest)

Call to deprecated method getMockForAbstractClass() of class PHPUnit\Framework\TestCase.
$grantMock->setClientRepository($clientRepositoryMock);
$abstractGrantReflection = new ReflectionClass($grantMock);