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