public function appendHmacAppendsHmacToGivenString() { $string = 'This is some arbitrary string '; $hashedString = $this->hashService->appendHmac($string); $this->assertSame($string, substr($hashedString, 0, -40)); }