Emarref\Jwt\Encryption\SymmetricTest::testEncrypt PHP Метод

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

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));
    }