/** * 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; }
/** * 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'); }