Emarref\Jwt\Algorithm\Hs512Test::testCompute PHP Метод

testCompute() публичный Метод

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