Skip to content

Commit

Permalink
Fixed coverage annotations in tests so they work with the new Authori…
Browse files Browse the repository at this point in the history
…se class.
  • Loading branch information
RobDWaller committed Dec 4, 2019
1 parent f110773 commit c23434f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions tests/Factory/JwtMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use PHPUnit\Framework\TestCase;
use PsrJwt\Factory\JwtMiddleware;
use PsrJwt\JwtAuthMiddleware;
use PsrJwt\Auth\Authenticate;
use PsrJwt\Auth\Authorise;
use PsrJwt\Factory\Jwt;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
Expand All @@ -17,7 +17,7 @@ class JwtMiddlewareTest extends TestCase
/**
* @covers PsrJwt\Factory\JwtMiddleware::html
* @uses PsrJwt\JwtAuthMiddleware::__construct
* @uses PsrJwt\Auth\Authenticate
* @uses PsrJwt\Auth\Authorise
* @uses PsrJwt\Handler\Html
*/
public function testJwtMiddlewareHtml()
Expand All @@ -32,7 +32,7 @@ public function testJwtMiddlewareHtml()
* @covers PsrJwt\JwtAuthMiddleware::process
* @uses PsrJwt\Factory\JwtMiddleware
* @uses PsrJwt\Auth\Auth
* @uses PsrJwt\Auth\Authenticate
* @uses PsrJwt\Auth\Authorise
* @uses PsrJwt\Handler\Html
* @uses PsrJwt\Factory\Jwt
* @uses PsrJwt\JwtAuthMiddleware
Expand Down Expand Up @@ -78,7 +78,7 @@ public function testFactoryValidation()
/**
* @covers PsrJwt\Factory\JwtMiddleware::json
* @uses PsrJwt\Auth\Auth
* @uses PsrJwt\Auth\Authenticate
* @uses PsrJwt\Auth\Authorise
* @uses PsrJwt\Handler\Json
* @uses PsrJwt\Factory\Jwt
* @uses PsrJwt\JwtAuthMiddleware
Expand Down
8 changes: 4 additions & 4 deletions tests/Handler/HtmlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function testAuthHandler()
* @covers PsrJwt\Handler\Html::handle
* @uses PsrJwt\Handler\Html::__construct
* @uses PsrJwt\Factory\Jwt
* @uses PsrJwt\Auth\Authenticate
* @uses PsrJwt\Auth\Authorise
* @uses PsrJwt\Auth\Auth
* @uses PsrJwt\Validation\Validate
* @uses PsrJwt\Parser\Bearer
Expand Down Expand Up @@ -79,7 +79,7 @@ public function testAuthenticateOk()
* @covers PsrJwt\Handler\Html::handle
* @uses PsrJwt\Handler\Html::__construct
* @uses PsrJwt\Factory\Jwt
* @uses PsrJwt\Auth\Authenticate
* @uses PsrJwt\Auth\Authorise
* @uses PsrJwt\Auth\Auth
* @uses PsrJwt\Validation\Validate
* @uses PsrJwt\Parser\Bearer
Expand Down Expand Up @@ -127,7 +127,7 @@ public function testAuthenticateNoBody()
* @covers PsrJwt\Handler\Html::handle
* @uses PsrJwt\Handler\Html::__construct
* @uses PsrJwt\Factory\Jwt
* @uses PsrJwt\Auth\Authenticate
* @uses PsrJwt\Auth\Authorise
* @uses PsrJwt\Auth\Auth
* @uses PsrJwt\Validation\Validate
* @uses PsrJwt\Parser\Bearer
Expand Down Expand Up @@ -176,7 +176,7 @@ public function testAuthenticateBadRequest()
* @covers PsrJwt\Handler\Html::handle
* @uses PsrJwt\Handler\Html::__construct
* @uses PsrJwt\Factory\Jwt
* @uses PsrJwt\Auth\Authenticate
* @uses PsrJwt\Auth\Authorise
* @uses PsrJwt\Auth\Auth
* @uses PsrJwt\Validation\Validate
* @uses PsrJwt\Parser\Bearer
Expand Down
6 changes: 3 additions & 3 deletions tests/Handler/JsonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class JsonTest extends TestCase
{
/**
* @covers PsrJwt\Handler\Json::__construct
* @uses PsrJwt\Auth\Authenticate
* @uses PsrJwt\Auth\Authorise
*/
public function testJsonAuthHandler()
{
Expand All @@ -30,7 +30,7 @@ public function testJsonAuthHandler()
* @covers PsrJwt\Handler\Json::handle
* @uses PsrJwt\Handler\Json::__construct
* @uses PsrJwt\Factory\Jwt
* @uses PsrJwt\Auth\Authenticate
* @uses PsrJwt\Auth\Authorise
* @uses PsrJwt\Auth\Auth
* @uses PsrJwt\Validation\Validate
* @uses PsrJwt\Parser\Bearer
Expand Down Expand Up @@ -80,7 +80,7 @@ public function testAuthenticateOk()
* @covers PsrJwt\Handler\Json::handle
* @uses PsrJwt\Handler\Json::__construct
* @uses PsrJwt\Factory\Jwt
* @uses PsrJwt\Auth\Authenticate
* @uses PsrJwt\Auth\Authorise
* @uses PsrJwt\Auth\Auth
* @uses PsrJwt\Validation\Validate
* @uses PsrJwt\Parser\Bearer
Expand Down
10 changes: 5 additions & 5 deletions tests/JwtAuthMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class JwtAuthMiddlewareTest extends TestCase
{
/**
* @covers PsrJwt\JwtAuthMiddleware
* @uses PsrJwt\Auth\Authenticate
* @uses PsrJwt\Auth\Authorise
* @uses PsrJwt\Handler\Html
*/
public function testJwtAuthProcess()
Expand All @@ -34,7 +34,7 @@ public function testJwtAuthProcess()
/**
* @covers PsrJwt\JwtAuthMiddleware::process
* @uses PsrJwt\JwtAuthMiddleware::__construct
* @uses PsrJwt\Auth\Authenticate
* @uses PsrJwt\Auth\Authorise
* @uses PsrJwt\Auth\Auth
* @uses PsrJwt\Factory\Jwt
* @uses PsrJwt\Parser\Parse
Expand Down Expand Up @@ -84,7 +84,7 @@ public function testProcess()
/**
* @covers PsrJwt\JwtAuthMiddleware::process
* @uses PsrJwt\JwtAuthMiddleware
* @uses PsrJwt\Auth\Authenticate
* @uses PsrJwt\Auth\Authorise
* @uses PsrJwt\Auth\Auth
* @uses PsrJwt\Factory\Jwt
* @uses PsrJwt\Parser\Parse
Expand Down Expand Up @@ -130,7 +130,7 @@ public function testProcessFail()
/**
* @covers PsrJwt\JwtAuthMiddleware::__invoke
* @uses PsrJwt\JwtAuthMiddleware::__construct
* @uses PsrJwt\Auth\Authenticate
* @uses PsrJwt\Auth\Authorise
* @uses PsrJwt\Auth\Auth
* @uses PsrJwt\Factory\Jwt
* @uses PsrJwt\Validation\Validate
Expand Down Expand Up @@ -185,7 +185,7 @@ public function testInvoke()
/**
* @covers PsrJwt\JwtAuthMiddleware::__invoke
* @uses PsrJwt\JwtAuthMiddleware
* @uses PsrJwt\Auth\Authenticate
* @uses PsrJwt\Auth\Authorise
* @uses PsrJwt\Auth\Auth
* @uses PsrJwt\Factory\Jwt
* @uses PsrJwt\Validation\Validate
Expand Down

0 comments on commit c23434f

Please sign in to comment.