예제 #1
0
 /**
  * test toString
  * expected string
  */
 public function testCooking_VolumeToString()
 {
     $value = new Zend_Measure_Cooking_Volume('-100', Zend_Measure_Cooking_Volume::STANDARD, 'de');
     $this->assertEquals($value->toString(), '-100 m³', 'Value -100 m³ expected');
 }
예제 #2
0
 /**
  * Compare if the value and type is equal
  *
  * @param  Zend_Measure_Cooking_Volume  $object  Cooking Volume object to compare
  * @return boolean
  */
 public function equals($object)
 {
     if ($object->toString() == $this->toString()) {
         return true;
     }
     return false;
 }