Example #1
0
 /**
  * @covers BT\BinaryDigit::equals
  */
 public function testEquals()
 {
     $a = new BinaryDigit(64);
     $b = new BinaryDigit(64);
     $c = new BinaryDigit(32);
     $this->assertTrue($a->equals($b));
     $this->assertFalse($a->equals($c));
 }
Example #2
0
 /**
  * Compara se este objeto é iqual a outro
  * @param \BT\BinaryDigit $object
  * @return boolean
  */
 public function equals(BinaryDigit $object)
 {
     return $this->getSize() == $object->getSize() ? true : false;
 }