Пример #1
0
 /**
  * test for no equality
  * expected false
  */
 public function testVolumeNoEquality()
 {
     $value = new Zend_Measure_Volume('-100.100,200', Zend_Measure_Volume::STANDARD, 'de');
     $newvalue = new Zend_Measure_Volume('-100,200', Zend_Measure_Volume::STANDARD, 'de');
     $this->assertFalse($value->equals($newvalue), 'Zend_Measure_Volume Object should be not equal');
 }
Пример #2
0
 /**
  * test for unserialization
  * expected object
  */
 public function testVolumeUnSerialize()
 {
     $value = new Zend_Measure_Volume('string -100.100,200', Zend_Measure_Volume::STANDARD, 'de');
     $serial = $value->serialize();
     $newvalue = unserialize($serial);
     $this->assertTrue($value->equals($newvalue), 'Zend_Measure_Volume not unserialized');
 }