/** * test toString * expected string */ public function testCurrentToString() { $value = new Zend_Measure_Current('-100', Zend_Measure_Current::STANDARD, 'de'); $this->assertEquals('-100 A', $value->toString(), 'Value -100 A expected'); }
/** * Compare if the value and type is equal * * @param Zend_Measure_Current $object Current object to compare * @return boolean */ public function equals($object) { if ($object->toString() == $this->toString()) { return true; } return false; }