コード例 #1
0
ファイル: CurrentTest.php プロジェクト: omusico/logica
 /**
  * test toString
  * expected string
  */
 public function testCurrentToString()
 {
     $value = new Zend_Measure_Current('-100', Zend_Measure_Current::STANDARD, 'de');
     $this->assertEquals('-100 A', $value->toString(), 'Value -100 A expected');
 }
コード例 #2
0
ファイル: Current.php プロジェクト: jorgenils/zend-framework
 /**
  * Compare if the value and type is equal
  *
  * @param  Zend_Measure_Current  $object  Current object to compare
  * @return boolean
  */
 public function equals($object)
 {
     if ($object->toString() == $this->toString()) {
         return true;
     }
     return false;
 }