Emarref\Jwt\Algorithm\Hs384Test::testCompute PHP Method

testCompute() public method

public testCompute ( )
    public function testCompute()
    {
        $unencryptedValue = 'foobar';
        $encryptedValue = hash_hmac(self::ALGORITHM, $unencryptedValue, self::$secret, true);
        $this->assertSame($encryptedValue, $this->algorithm->compute($unencryptedValue));
    }