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