Ejemplo n.º 1
0
 public function testControlWithDraftToAndFromStringShouldMatch()
 {
     $draft = new Zend_Gdata_App_Extension_Draft('yes');
     $this->control->draft = $draft;
     $controlXml = $this->control->saveXML();
     $newControl = new Zend_Gdata_App_Extension_Control();
     $newControl->transferFromXML($controlXml);
     $newControlXml = $newControl->saveXML();
     $this->assertEquals($newControlXml, $controlXml);
     $this->assertEquals('yes', $newControl->draft->text);
 }