Fix issues setting attributes on requests

This commit is contained in:
sephster
2019-06-27 13:15:37 +01:00
parent e3b23fa826
commit 51b97f87c1
7 changed files with 55 additions and 95 deletions

View File

@@ -28,8 +28,7 @@ class BearerTokenValidatorTest extends TestCase
->set('scopes', 'scope1 scope2 scope3 scope4')
->getToken();
$request = new ServerRequest();
$request = $request->withHeader('authorization', sprintf('Bearer %s', $unsignedJwt));
$request = (new ServerRequest())->withHeader('authorization', sprintf('Bearer %s', $unsignedJwt));
$this->expectException(\League\OAuth2\Server\Exception\OAuthServerException::class);
$this->expectExceptionCode(9);