updated-packages
This commit is contained in:
@@ -21,7 +21,7 @@ use Lcobucci\JWT\Keys;
|
||||
* @author Luís Otávio Cobucci Oblonczyk <lcobucci@gmail.com>
|
||||
* @since 2.1.0
|
||||
*/
|
||||
class EcdsaTokenTest extends \PHPUnit_Framework_TestCase
|
||||
class EcdsaTokenTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
use Keys;
|
||||
|
||||
@@ -52,8 +52,9 @@ class EcdsaTokenTest extends \PHPUnit_Framework_TestCase
|
||||
* @covers Lcobucci\JWT\Signer\Key
|
||||
* @covers Lcobucci\JWT\Signer\BaseSigner
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\KeyParser
|
||||
* @covers \Lcobucci\JWT\Signer\Ecdsa\MultibyteStringConverter
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\Sha256
|
||||
* @covers \Lcobucci\JWT\Signer\OpenSSL
|
||||
*/
|
||||
public function builderShouldRaiseExceptionWhenKeyIsInvalid()
|
||||
{
|
||||
@@ -63,7 +64,7 @@ class EcdsaTokenTest extends \PHPUnit_Framework_TestCase
|
||||
->setAudience('http://client.abc.com')
|
||||
->setIssuer('http://api.abc.com')
|
||||
->set('user', $user)
|
||||
->sign($this->signer, new Key('testing'));
|
||||
->getToken($this->signer, new Key('testing'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -80,8 +81,9 @@ class EcdsaTokenTest extends \PHPUnit_Framework_TestCase
|
||||
* @covers Lcobucci\JWT\Signer\Key
|
||||
* @covers Lcobucci\JWT\Signer\BaseSigner
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\KeyParser
|
||||
* @covers \Lcobucci\JWT\Signer\Ecdsa\MultibyteStringConverter
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\Sha256
|
||||
* @covers \Lcobucci\JWT\Signer\OpenSSL
|
||||
*/
|
||||
public function builderShouldRaiseExceptionWhenKeyIsNotEcdsaCompatible()
|
||||
{
|
||||
@@ -91,7 +93,7 @@ class EcdsaTokenTest extends \PHPUnit_Framework_TestCase
|
||||
->setAudience('http://client.abc.com')
|
||||
->setIssuer('http://api.abc.com')
|
||||
->set('user', $user)
|
||||
->sign($this->signer, static::$rsaKeys['private']);
|
||||
->getToken($this->signer, static::$rsaKeys['private']);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -106,8 +108,9 @@ class EcdsaTokenTest extends \PHPUnit_Framework_TestCase
|
||||
* @covers Lcobucci\JWT\Signer\Key
|
||||
* @covers Lcobucci\JWT\Signer\BaseSigner
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\KeyParser
|
||||
* @covers \Lcobucci\JWT\Signer\Ecdsa\MultibyteStringConverter
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\Sha256
|
||||
* @covers \Lcobucci\JWT\Signer\OpenSSL
|
||||
*/
|
||||
public function builderCanGenerateAToken()
|
||||
{
|
||||
@@ -144,7 +147,6 @@ class EcdsaTokenTest extends \PHPUnit_Framework_TestCase
|
||||
* @covers Lcobucci\JWT\Parsing\Encoder
|
||||
* @covers Lcobucci\JWT\Parsing\Decoder
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\KeyParser
|
||||
*/
|
||||
public function parserCanReadAToken(Token $generated)
|
||||
{
|
||||
@@ -169,8 +171,9 @@ class EcdsaTokenTest extends \PHPUnit_Framework_TestCase
|
||||
* @covers Lcobucci\JWT\Signer\Key
|
||||
* @covers Lcobucci\JWT\Signer\BaseSigner
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\KeyParser
|
||||
* @covers \Lcobucci\JWT\Signer\Ecdsa\MultibyteStringConverter
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\Sha256
|
||||
* @covers \Lcobucci\JWT\Signer\OpenSSL
|
||||
*/
|
||||
public function verifyShouldReturnFalseWhenKeyIsNotRight(Token $token)
|
||||
{
|
||||
@@ -192,9 +195,10 @@ class EcdsaTokenTest extends \PHPUnit_Framework_TestCase
|
||||
* @covers Lcobucci\JWT\Signer\Key
|
||||
* @covers Lcobucci\JWT\Signer\BaseSigner
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\KeyParser
|
||||
* @covers \Lcobucci\JWT\Signer\Ecdsa\MultibyteStringConverter
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\Sha256
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\Sha512
|
||||
* @covers \Lcobucci\JWT\Signer\OpenSSL
|
||||
*/
|
||||
public function verifyShouldReturnFalseWhenAlgorithmIsDifferent(Token $token)
|
||||
{
|
||||
@@ -204,7 +208,7 @@ class EcdsaTokenTest extends \PHPUnit_Framework_TestCase
|
||||
/**
|
||||
* @test
|
||||
*
|
||||
* @expectedException \RuntimeException
|
||||
* @expectedException \InvalidArgumentException
|
||||
*
|
||||
* @depends builderCanGenerateAToken
|
||||
*
|
||||
@@ -218,8 +222,9 @@ class EcdsaTokenTest extends \PHPUnit_Framework_TestCase
|
||||
* @covers Lcobucci\JWT\Signer\Key
|
||||
* @covers Lcobucci\JWT\Signer\BaseSigner
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\KeyParser
|
||||
* @covers \Lcobucci\JWT\Signer\Ecdsa\MultibyteStringConverter
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\Sha256
|
||||
* @covers \Lcobucci\JWT\Signer\OpenSSL
|
||||
*/
|
||||
public function verifyShouldRaiseExceptionWhenKeyIsNotEcdsaCompatible(Token $token)
|
||||
{
|
||||
@@ -241,8 +246,9 @@ class EcdsaTokenTest extends \PHPUnit_Framework_TestCase
|
||||
* @covers Lcobucci\JWT\Signer\Key
|
||||
* @covers Lcobucci\JWT\Signer\BaseSigner
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\KeyParser
|
||||
* @covers \Lcobucci\JWT\Signer\Ecdsa\MultibyteStringConverter
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\Sha256
|
||||
* @covers \Lcobucci\JWT\Signer\OpenSSL
|
||||
*/
|
||||
public function verifyShouldReturnTrueWhenKeyIsRight(Token $token)
|
||||
{
|
||||
@@ -261,8 +267,9 @@ class EcdsaTokenTest extends \PHPUnit_Framework_TestCase
|
||||
* @covers Lcobucci\JWT\Signer\Key
|
||||
* @covers Lcobucci\JWT\Signer\BaseSigner
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\KeyParser
|
||||
* @covers \Lcobucci\JWT\Signer\Ecdsa\MultibyteStringConverter
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\Sha256
|
||||
* @covers \Lcobucci\JWT\Signer\OpenSSL
|
||||
*/
|
||||
public function everythingShouldWorkWithAKeyWithParams()
|
||||
{
|
||||
@@ -289,8 +296,9 @@ class EcdsaTokenTest extends \PHPUnit_Framework_TestCase
|
||||
* @covers Lcobucci\JWT\Signer\Key
|
||||
* @covers Lcobucci\JWT\Signer\BaseSigner
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\KeyParser
|
||||
* @covers \Lcobucci\JWT\Signer\Ecdsa\MultibyteStringConverter
|
||||
* @covers Lcobucci\JWT\Signer\Ecdsa\Sha512
|
||||
* @covers \Lcobucci\JWT\Signer\OpenSSL
|
||||
* @covers Lcobucci\JWT\Signer\Keychain
|
||||
* @covers Lcobucci\JWT\Claim\Factory
|
||||
* @covers Lcobucci\JWT\Claim\Basic
|
||||
|
Reference in New Issue
Block a user