/** * test for no equality * expected false */ public function testCapacitanceNoEquality() { $value = new Zend_Measure_Capacitance('-100.100,200', Zend_Measure_Capacitance::STANDARD, 'de'); $newvalue = new Zend_Measure_Capacitance('-100,200', Zend_Measure_Capacitance::STANDARD, 'de'); $this->assertFalse($value->equals($newvalue), 'Zend_Measure_Capacitance Object should be not equal'); }
/** * test for unserialization * expected object */ public function testCapacitanceUnSerialize() { $value = new Zend_Measure_Capacitance('string -100.100,200', Zend_Measure_Capacitance::STANDARD, 'de'); $serial = $value->serialize(); $newvalue = unserialize($serial); $this->assertTrue($value->equals($newvalue), 'Zend_Measure_Capacitance not unserialized'); }