Esempio n. 1
0
 /**
  * @see Comparable::equals
  *
  * @since 0.7.4
  *
  * @param mixed $target
  *
  * @return bool
  */
 public function equals($target)
 {
     if ($this === $target) {
         return true;
     }
     return $target instanceof self && $this->siteId === $target->siteId && $this->pageName === $target->pageName && $this->badges->equals($target->badges);
 }
Esempio n. 2
0
 public function testGivenDifferentSizedSets_equalsReturnsFalse()
 {
     $small = new ItemIdSet(array(new ItemId('Q1')));
     $big = new ItemIdSet(array(new ItemId('Q1'), new ItemId('Q2'), new ItemId('Q3')));
     $this->assertFalse($small->equals($big));
     $this->assertFalse($big->equals($small));
 }