/** * Generates a hash to store the specific object * * @param string $name Class name * @param array $args Arguments * @return string */ private function generateStorageHash($name, $args) { $hash = Hash::Sha1($name . '_' . serialize($args)); return $hash->getHashString(); }
/** * @expectedException \SimpleHash\Exception\SimpleHashException * @expectedExceptionMessage Algorithm "Test" is not implemented yet! */ public function testUnspportedAlgorithm() { $hash = Hash::Test('TEST'); }