/** * test toString * expected string */ public function testSpeedToString() { $value = new Zend_Measure_Speed('-100', Zend_Measure_Speed::STANDARD, 'de'); $this->assertEquals($value->toString(), '-100 m/s', 'Value -100 m/s expected'); }
/** * 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; }