/**
  * test getConversionList
  * expected array
  */
 public function testViscosity_DynamicConversionList()
 {
     $value = new Zend_Measure_Viscosity_Dynamic('-100', Zend_Measure_Viscosity_Dynamic::STANDARD, 'de');
     $unit = $value->getConversionList();
     $this->assertTrue(is_array($unit), 'Array expected');
 }
Example #2
0
 /**
  * Compare if the value and type is equal
  *
  * @param  Zend_Measure_Viscosity_Dynamic  $object  Viscosity Dynamic object to compare
  *      * @param $object  object to compare equality
  * @return boolean
  */
 public function equals($object)
 {
     if ($object->toString() == $this->toString()) {
         return true;
     }
     return false;
 }