diff --git a/tests/AuthorizationServerTest.php b/tests/AuthorizationServerTest.php index f01c30638..72add207b 100644 --- a/tests/AuthorizationServerTest.php +++ b/tests/AuthorizationServerTest.php @@ -50,15 +50,6 @@ public function setUp(): void chmod(__DIR__ . '/Stubs/private.key.crlf', 0600); } - public function testKeyPermissions(): void - { - $permission = PHP_OS_FAMILY === 'Windows' ? '666' : '600'; - - self::assertSame($permission, decoct(fileperms(__DIR__ . '/Stubs/private.key') & 0777)); - self::assertSame($permission, decoct(fileperms(__DIR__ . '/Stubs/public.key') & 0777)); - self::assertSame($permission, decoct(fileperms(__DIR__ . '/Stubs/private.key.crlf') & 0777)); - } - public function testGrantTypeGetsEnabled(): void { $server = new AuthorizationServer( @@ -192,7 +183,7 @@ public function testMultipleRequestsGetDifferentResponseTypeInstances(): void $privateKey = 'file://' . __DIR__ . '/Stubs/private.key'; $encryptionKey = 'file://' . __DIR__ . '/Stubs/public.key'; - $responseTypePrototype = new class () extends BearerTokenResponse { + $responseTypePrototype = new class() extends BearerTokenResponse { protected CryptKeyInterface $privateKey; protected Key|string|null $encryptionKey = null;