/** * @test * * @dataProvider algorithms * * @covers \Lcobucci\JWT\Signer\Ecdsa\SignatureSerializer::parse * * @uses \Lcobucci\JWT\Signer\Ecdsa\SignatureSerializer::__construct */ public function parseShouldExtractASignatureBasedOnTheHash(string $algorithm) { $serializer = new SignatureSerializer($this->mathInterface); self::assertEquals($this->signature, $serializer->parse($this->signatureData[$algorithm], $algorithm)); }