Example #1
0
 public function testNameWithValueToAndFromStringShouldMatch()
 {
     $this->theName->givenName = "John";
     $this->theName->familyName = "Doe";
     $nameXml = $this->theName->saveXML();
     $newName = new Zend_Gdata_Gapps_Extension_Name();
     $newName->transferFromXML($nameXml);
     $newNameXml = $newName->saveXML();
     $this->assertTrue($nameXml == $newNameXml);
     $this->assertEquals("John", $this->theName->givenName);
     $this->assertEquals("Doe", $this->theName->familyName);
 }