Skip to content

Commit

Permalink
Removing unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sephster committed Dec 20, 2024
1 parent 644bfb8 commit 902d5f2
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tests/AuthorizationServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 902d5f2

Please sign in to comment.