Emarref\Jwt\Encryption\AsymmetricTest::testVerify PHP Метод

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

public testVerify ( )
    public function testVerify()
    {
        $value = 'value';
        $signature = 'signature';
        $publicKey = 'public_key';
        $encryptedValue = 'encrypted_value';
        $this->encryption->setPublicKey($publicKey);
        $this->algorithm->expects($this->once())->method('verify')->with($value, $signature, $publicKey)->will($this->returnValue($encryptedValue));
        $this->encryption->verify($value, $signature);
    }