Emarref\Jwt\Encryption\SymmetricTest::testEncrypt PHP Method

testEncrypt() public method

public testEncrypt ( )
    public function testEncrypt()
    {
        $value = 'value';
        $computedValue = 'computed_value';
        $this->algorithm->expects($this->once())->method('compute')->with($value)->will($this->returnValue($computedValue));
        $this->assertSame($computedValue, $this->encryption->encrypt($value));
    }