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