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