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

testCompute() public method

public testCompute ( )
    public function testCompute()
    {
        $unencryptedValue = 'foobar';
        openssl_sign($unencryptedValue, $encryptedValue, $this->key, OPENSSL_ALGO_SHA512);
        $signature = $this->algorithm->sign($unencryptedValue, $this->key);
        $this->assertSame($encryptedValue, $signature);
    }