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