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