예제 #1
0
 public function testEquals()
 {
     $a = new BitField(2);
     $b = new BitField(2);
     $c = new BitField(3);
     $this->assertTrue($a->equals($b));
     $this->assertFalse($b->equals($c));
 }
예제 #2
0
 /**
  *
  *
  * @param BitField $other
  * @return boolean
  */
 public function equals(BitField $other)
 {
     return $this->getBitFieldValue() === $other->getBitFieldValue();
 }