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)); }
/** * * * @param BitField $other * @return boolean */ public function equals(BitField $other) { return $this->getBitFieldValue() === $other->getBitFieldValue(); }