/**
  * test toString
  * expected string
  */
 public function testCapacitanceToString()
 {
     $value = new Zend_Measure_Capacitance('-100', Zend_Measure_Capacitance::STANDARD, 'de');
     $this->assertEquals('-100 F', $value->toString(), 'Value -100 F expected');
 }
Example #2
0
 /**
  * Compare if the value and type is equal
  *
  * @param  Zend_Measure_Capacitance  $object  Capacitance object to compare
  * @return boolean
  */
 public function equals($object)
 {
     if ($object->toString() == $this->toString()) {
         return true;
     }
     return false;
 }