/** * @test * * @covers Lcobucci\JWT\Signer\Ecdsa\Sha384::getAlgorithm */ public function getAlgorithmMustBeCorrect() { $signer = new Sha384(); $this->assertEquals(OPENSSL_ALGO_SHA384, $signer->getAlgorithm()); }
/** * @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()); }
/** * @test * * @covers \Lcobucci\JWT\Signer\Hmac\Sha384::getAlgorithm */ public function getAlgorithmMustBeCorrect() { $signer = new Sha384(); self::assertEquals('sha384', $signer->getAlgorithm()); }
/** * @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()); }