Skip to content

Commit 0d98af8

Browse files
fix static analyse
1 parent f090882 commit 0d98af8

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

tests/Grant/AuthCodeGrantTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,9 @@ public function testValidateAuthorizationRequestInvalidScopes(): void
502502
try {
503503
$grant->validateAuthorizationRequest($request);
504504
} catch (OAuthServerException $e) {
505-
$this->assertSame(5, $e->getCode());
506-
$this->assertSame('invalid_scope', $e->getErrorType());
507-
$this->assertSame('https://foo/bar?state=foo', $e->getRedirectUri());
505+
self::assertSame(5, $e->getCode());
506+
self::assertSame('invalid_scope', $e->getErrorType());
507+
self::assertSame('https://foo/bar?state=foo', $e->getRedirectUri());
508508

509509
return;
510510
}
@@ -588,9 +588,9 @@ public function testCompleteAuthorizationRequestDenied(): void
588588
try {
589589
$grant->completeAuthorizationRequest($authRequest);
590590
} catch (OAuthServerException $e) {
591-
$this->assertSame(9, $e->getCode());
592-
$this->assertSame('access_denied', $e->getErrorType());
593-
$this->assertSame('http://foo/bar?state=foo', $e->getRedirectUri());
591+
self::assertSame(9, $e->getCode());
592+
self::assertSame('access_denied', $e->getErrorType());
593+
self::assertSame('http://foo/bar?state=foo', $e->getRedirectUri());
594594

595595
return;
596596
}

tests/Grant/ImplicitGrantTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ public function testValidateAuthorizationRequestInvalidScopes(): void
234234
try {
235235
$grant->validateAuthorizationRequest($request);
236236
} catch (OAuthServerException $e) {
237-
$this->assertSame(5, $e->getCode());
238-
$this->assertSame('invalid_scope', $e->getErrorType());
239-
$this->assertSame('https://foo/bar#state=foo', $e->getRedirectUri());
237+
self::assertSame(5, $e->getCode());
238+
self::assertSame('invalid_scope', $e->getErrorType());
239+
self::assertSame('https://foo/bar#state=foo', $e->getRedirectUri());
240240

241241
return;
242242
}
@@ -304,9 +304,9 @@ public function testCompleteAuthorizationRequestDenied(): void
304304
try {
305305
$grant->completeAuthorizationRequest($authRequest);
306306
} catch (OAuthServerException $e) {
307-
$this->assertSame(9, $e->getCode());
308-
$this->assertSame('access_denied', $e->getErrorType());
309-
$this->assertSame('https://foo/bar#state=foo', $e->getRedirectUri());
307+
self::assertSame(9, $e->getCode());
308+
self::assertSame('access_denied', $e->getErrorType());
309+
self::assertSame('https://foo/bar#state=foo', $e->getRedirectUri());
310310

311311
return;
312312
}

0 commit comments

Comments
 (0)