public function testExtensionAttributes() { $extensionAttributes = $this->comments->extensionAttributes; $extensionAttributes['foo1'] = array('name' => 'foo1', 'value' => 'bar'); $extensionAttributes['foo2'] = array('name' => 'foo2', 'value' => 'rab'); $this->comments->extensionAttributes = $extensionAttributes; $this->assertEquals('bar', $this->comments->extensionAttributes['foo1']['value']); $this->assertEquals('rab', $this->comments->extensionAttributes['foo2']['value']); $commentsXml = $this->comments->saveXML(); $newComments = new Zend_Gdata_Extension_Comments(); $newComments->transferFromXML($commentsXml); $this->assertEquals('bar', $newComments->extensionAttributes['foo1']['value']); $this->assertEquals('rab', $newComments->extensionAttributes['foo2']['value']); }