public function testPropertyWithValueToAndFromStringShouldMatch() { $this->property->name = "HairColor"; $this->property->value = "Red"; $propertyXml = $this->property->saveXML(); $newProperty = new Zend_Gdata_Gapps_Extension_Property(); $newProperty->transferFromXML($propertyXml); $newPropertyXml = $newProperty->saveXML(); $this->assertEquals($propertyXml, $newPropertyXml); $this->assertEquals("HairColor", $this->property->name); $this->assertEquals("Red", $this->property->value); }
public function testPropertyWithValueToAndFromStringShouldMatch() { $this->theProperty->name = "foo2"; $this->theProperty->value = "bar2"; $propertyXml = $this->theProperty->saveXML(); $newProperty = new Zend_Gdata_Gapps_Extension_Property(); $newProperty->transferFromXML($propertyXml); $newPropertyXml = $newProperty->saveXML(); $this->assertTrue($propertyXml == $newPropertyXml); $this->assertEquals("foo2", $this->theProperty->name); $this->assertEquals("bar2", $this->theProperty->value); }