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