Ejemplo n.º 1
0
 /**
  * test getConversionList
  * expected array
  */
 public function testSpeedConversionList()
 {
     $value = new Zend_Measure_Speed('-100', Zend_Measure_Speed::STANDARD, 'de');
     $unit = $value->getConversionList();
     $this->assertTrue(is_array($unit), 'Array expected');
 }
Ejemplo n.º 2
0
 /**
  * Compare if the value and type is equal
  *
  * @param  Zend_Measure_Speed  $object  Speed object to compare
  * @return boolean
  */
 public function equals($object)
 {
     if ($object->toString() == $this->toString()) {
         return true;
     }
     return false;
 }