Beispiel #1
0
 /**
  * @see Hashable::getHash
  *
  * @since 0.1
  *
  * @return string
  */
 public function getHash()
 {
     return sha1(implode('|', array(sha1($this->mainSnak->getHash() . $this->qualifiers->getHash()), $this->rank, $this->references->getValueHash())));
 }
 /**
  * @dataProvider instanceProvider
  * @param ReferenceList $array
  */
 public function testGetHashReturnsString(ReferenceList $array)
 {
     $this->assertInternalType('string', $array->getValueHash());
 }