Fixed test @covers annotations
This commit is contained in:
parent
e30ded1e66
commit
5c422226fd
@ -8,7 +8,10 @@ class JWTTokenTest extends \PHPUnit\Framework\TestCase
|
|||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers
|
* @covers NoccyLabs\SimpleJWT\JWTToken
|
||||||
|
* @covers NoccyLabs\SimpleJWT\Key\JWTPlaintextKey
|
||||||
|
* @covers NoccyLabs\SimpleJWT\Collection\PropertyBag
|
||||||
|
* @covers NoccyLabs\SimpleJWT\JWTUtil
|
||||||
*/
|
*/
|
||||||
public function testGeneratingTokens()
|
public function testGeneratingTokens()
|
||||||
{
|
{
|
||||||
@ -24,7 +27,10 @@ class JWTTokenTest extends \PHPUnit\Framework\TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers
|
* @covers NoccyLabs\SimpleJWT\JWTToken
|
||||||
|
* @covers NoccyLabs\SimpleJWT\Key\JWTPlaintextKey
|
||||||
|
* @covers NoccyLabs\SimpleJWT\Collection\PropertyBag
|
||||||
|
* @covers NoccyLabs\SimpleJWT\JWTUtil
|
||||||
*/
|
*/
|
||||||
public function testParsingTokens()
|
public function testParsingTokens()
|
||||||
{
|
{
|
||||||
|
@ -7,7 +7,8 @@ class JWTUtilTest extends \PHPUnit\Framework\TestCase
|
|||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers
|
* @covers \NoccyLabs\SimpleJWT\JWTUtil::encode
|
||||||
|
* @covers \NoccyLabs\SimpleJWT\JWTUtil::decode
|
||||||
*/
|
*/
|
||||||
public function testTheEncodingShouldBeSymmetric()
|
public function testTheEncodingShouldBeSymmetric()
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@ namespace NoccyLabs\SimpleJWT\Key;
|
|||||||
class JWTDerivedKeyTest extends \PHPUnit\Framework\TestCase
|
class JWTDerivedKeyTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers
|
* @covers \NoccyLabs\SimpleJWT\Key\JWTDerivedKey
|
||||||
*/
|
*/
|
||||||
public function testTheDerivedKeysShouldBeConsistent()
|
public function testTheDerivedKeysShouldBeConsistent()
|
||||||
{
|
{
|
||||||
@ -24,7 +24,7 @@ class JWTDerivedKeyTest extends \PHPUnit\Framework\TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers
|
* @covers \NoccyLabs\SimpleJWT\Key\JWTDerivedKey
|
||||||
*/
|
*/
|
||||||
public function testTheDerivedKeysShouldBeUnique()
|
public function testTheDerivedKeysShouldBeUnique()
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@ namespace NoccyLabs\SimpleJWT\Key;
|
|||||||
class JWTPlaintextKeyTest extends \PHPUnit\Framework\TestCase
|
class JWTPlaintextKeyTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers
|
* @covers \NoccyLabs\SimpleJWT\Key\JWTPlaintextKey
|
||||||
*/
|
*/
|
||||||
public function testThePlaintextKeyShouldBeReturned()
|
public function testThePlaintextKeyShouldBeReturned()
|
||||||
{
|
{
|
||||||
|
@ -9,7 +9,11 @@ class JWTValidatorTest extends \PHPUnit\Framework\TestCase
|
|||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers
|
* @covers \NoccyLabs\SimpleJWT\Key\JWTPlaintextKey
|
||||||
|
* @covers \NoccyLabs\SimpleJWT\JWTToken
|
||||||
|
* @covers \NoccyLabs\SimpleJWT\Validator\JWTValidator
|
||||||
|
* @covers NoccyLabs\SimpleJWT\Collection\PropertyBag
|
||||||
|
* @covers NoccyLabs\SimpleJWT\JWTUtil
|
||||||
*/
|
*/
|
||||||
public function testValidTokensShouldPassWithDefaultConfiguration()
|
public function testValidTokensShouldPassWithDefaultConfiguration()
|
||||||
{
|
{
|
||||||
@ -22,7 +26,12 @@ class JWTValidatorTest extends \PHPUnit\Framework\TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers
|
* @covers \NoccyLabs\SimpleJWT\Validator\JWTValidator
|
||||||
|
* @covers \NoccyLabs\SimpleJWT\Key\JWTPlaintextKey
|
||||||
|
* @covers \NoccyLabs\SimpleJWT\JWTToken
|
||||||
|
* @covers \NoccyLabs\SimpleJWT\Validator\JWTTokenException
|
||||||
|
* @covers NoccyLabs\SimpleJWT\Collection\PropertyBag
|
||||||
|
* @covers NoccyLabs\SimpleJWT\JWTUtil
|
||||||
*/
|
*/
|
||||||
public function testExpiredTokensShouldFailWithException()
|
public function testExpiredTokensShouldFailWithException()
|
||||||
{
|
{
|
||||||
@ -38,7 +47,12 @@ class JWTValidatorTest extends \PHPUnit\Framework\TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers
|
* @covers \NoccyLabs\SimpleJWT\Validator\JWTValidator
|
||||||
|
* @covers \NoccyLabs\SimpleJWT\Key\JWTPlaintextKey
|
||||||
|
* @covers \NoccyLabs\SimpleJWT\JWTToken
|
||||||
|
* @covers \NoccyLabs\SimpleJWT\Validator\JWTTokenException
|
||||||
|
* @covers NoccyLabs\SimpleJWT\Collection\PropertyBag
|
||||||
|
* @covers NoccyLabs\SimpleJWT\JWTUtil
|
||||||
* @dataProvider tokenGenerator
|
* @dataProvider tokenGenerator
|
||||||
*/
|
*/
|
||||||
public function testPinningIssuer($issuer,$audience,$key,$token)
|
public function testPinningIssuer($issuer,$audience,$key,$token)
|
||||||
@ -59,7 +73,12 @@ class JWTValidatorTest extends \PHPUnit\Framework\TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers
|
* @covers \NoccyLabs\SimpleJWT\Validator\JWTValidator
|
||||||
|
* @covers \NoccyLabs\SimpleJWT\Key\JWTPlaintextKey
|
||||||
|
* @covers \NoccyLabs\SimpleJWT\JWTToken
|
||||||
|
* @covers \NoccyLabs\SimpleJWT\Validator\JWTTokenException
|
||||||
|
* @covers NoccyLabs\SimpleJWT\Collection\PropertyBag
|
||||||
|
* @covers NoccyLabs\SimpleJWT\JWTUtil
|
||||||
* @dataProvider tokenGenerator
|
* @dataProvider tokenGenerator
|
||||||
*/
|
*/
|
||||||
public function testPinningAudience($issuer,$audience,$key,$token)
|
public function testPinningAudience($issuer,$audience,$key,$token)
|
||||||
@ -80,7 +99,12 @@ class JWTValidatorTest extends \PHPUnit\Framework\TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers
|
* @covers \NoccyLabs\SimpleJWT\Validator\JWTValidator
|
||||||
|
* @covers \NoccyLabs\SimpleJWT\Key\JWTPlaintextKey
|
||||||
|
* @covers \NoccyLabs\SimpleJWT\JWTToken
|
||||||
|
* @covers \NoccyLabs\SimpleJWT\Validator\JWTTokenException
|
||||||
|
* @covers NoccyLabs\SimpleJWT\Collection\PropertyBag
|
||||||
|
* @covers NoccyLabs\SimpleJWT\JWTUtil
|
||||||
* @dataProvider tokenGenerator
|
* @dataProvider tokenGenerator
|
||||||
*/
|
*/
|
||||||
public function testPinningBoth($issuer,$audience,$key,$token)
|
public function testPinningBoth($issuer,$audience,$key,$token)
|
||||||
|
Loading…
Reference in New Issue
Block a user