예제 #1
0
 /**
  * Compare if the value and type is equal
  *
  * @param  Zend_Measure_Flow_Mass  $object  Flow Mass object to compare
  * @return boolean
  */
 public function equals($object)
 {
     if ($object->toString() == $this->toString()) {
         return true;
     }
     return false;
 }
예제 #2
0
파일: MassTest.php 프로젝트: jsnshrmn/Suma
 /**
  * test getConversionList
  * expected array
  */
 public function testFlow_MassConversionList()
 {
     $value = new Zend_Measure_Flow_Mass('-100', Zend_Measure_Flow_Mass::STANDARD, 'de');
     $unit = $value->getConversionList();
     $this->assertTrue(is_array($unit), 'Array expected');
 }