Esempio n. 1
0
 /**
  * Compare if the value and type is equal
  *
  * @param  Zend_Measure_Temperature  $object  Temperature object to compare
  * @return boolean
  */
 public function equals($object)
 {
     if ($object->toString() == $this->toString()) {
         return true;
     }
     return false;
 }
Esempio n. 2
0
 /**
  * test toString
  * expected string
  */
 public function testTemperatureToString()
 {
     $value = new Zend_Measure_Temperature('-100', Zend_Measure_Temperature::STANDARD, 'de');
     $this->assertEquals('-100 °K', $value->toString(), 'Value -100 °K expected');
 }