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