示例#1
0
 public function testChangeLabel()
 {
     $newSize = 1024 * 1024;
     $this->object->setSize($newSize);
     $this->assertInternalType("float", $this->object->getSize());
     $this->assertEquals("MB", $this->object->getSymbol());
 }
示例#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;
 }