コード例 #1
0
ファイル: HashArray.php プロジェクト: SRMSE/cron-wikidata
 /**
  * @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);
 }
コード例 #2
0
 public function testHashThrowsExceptionOnInvalidArgument()
 {
     $hasher = new MapValueHasher();
     $this->setExpectedException('InvalidArgumentException');
     $hasher->hash(null);
 }