Example #1
0
 /**
  * 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();
 }
Example #2
0
 /**
  * @expectedException \SimpleHash\Exception\SimpleHashException
  * @expectedExceptionMessage Algorithm "Test" is not implemented yet!
  */
 public function testUnspportedAlgorithm()
 {
     $hash = Hash::Test('TEST');
 }