Example #1
0
 /**
  * @see Hashable::getHash
  *
  * The hash is purely valuer based. Order of the elements in the array is not held into account.
  *
  * @since 0.1
  *
  * @return string
  */
 public function getHash()
 {
     $hasher = new MapValueHasher();
     return $hasher->hash($this);
 }
 public function testHashThrowsExceptionOnInvalidArgument()
 {
     $hasher = new MapValueHasher();
     $this->setExpectedException('InvalidArgumentException');
     $hasher->hash(null);
 }