Example #1
0
 /**
  * @see Comparable::equals
  *
  * @param mixed $target
  *
  * @return bool
  */
 public function equals($target)
 {
     if ($this === $target) {
         return true;
     }
     return $target instanceof self && parent::equals($target) && $this->actualLanguageCode === $target->actualLanguageCode && $this->sourceLanguageCode === $target->sourceLanguageCode;
 }
Example #2
0
 public function testGivenSimilarFallbackObject_equalsReturnsFalse()
 {
     $term = new Term('de', 'foo');
     $termFallback = new TermFallback('de', 'foo', 'en', null);
     $this->assertFalse($term->equals($termFallback));
 }