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