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