public function testCategoryWithSchemeAndTermToAndFromStringShouldMatch() { $this->category->scheme = 'http://schemas.google.com/g/2005#kind'; $this->category->term = 'http://schemas.google.com/g/2005#event'; $this->category->label = 'event kind'; $categoryXml = $this->category->saveXML(); $newCategory = new Zend_Gdata_App_Extension_Category(); $newCategory->transferFromXML($categoryXml); $newCategoryXml = $newCategory->saveXML(); $this->assertTrue($categoryXml == $newCategoryXml); $this->assertEquals('http://schemas.google.com/g/2005#kind', $newCategory->scheme); $this->assertEquals('http://schemas.google.com/g/2005#event', $newCategory->term); $this->assertEquals('event kind', $newCategory->label); }