Esempio n. 1
0
 /**
  * @test
  *
  * @covers Lcobucci\JWT\Signer\Ecdsa\Sha384::getAlgorithm
  */
 public function getAlgorithmMustBeCorrect()
 {
     $signer = new Sha384();
     $this->assertEquals(OPENSSL_ALGO_SHA384, $signer->getAlgorithm());
 }
Esempio n. 2
0
 /**
  * @test
  *
  * @uses Lcobucci\JWT\Signer\Ecdsa
  * @uses Lcobucci\JWT\Signer\Ecdsa\KeyParser
  *
  * @covers Lcobucci\JWT\Signer\Ecdsa\Sha384::getSignatureLength
  */
 public function getSignatureLengthMustBeCorrect()
 {
     $signer = new Sha384();
     $this->assertEquals(96, $signer->getSignatureLength());
 }
Esempio n. 3
0
 /**
  * @test
  *
  * @covers \Lcobucci\JWT\Signer\Hmac\Sha384::getAlgorithm
  */
 public function getAlgorithmMustBeCorrect()
 {
     $signer = new Sha384();
     self::assertEquals('sha384', $signer->getAlgorithm());
 }
Esempio n. 4
0
 /**
  * @test
  *
  * @covers \Lcobucci\JWT\Signer\Ecdsa::create
  * @covers \Lcobucci\JWT\Signer\Ecdsa::__construct
  *
  * @uses \Lcobucci\JWT\Signer\Ecdsa\EccAdapter
  * @uses \Lcobucci\JWT\Signer\Ecdsa\KeyParser
  * @uses \Lcobucci\JWT\Signer\Ecdsa\SignatureSerializer
  */
 public function createShouldReturnAValidInstance()
 {
     self::assertInstanceOf(Sha384::class, Sha384::create());
 }