Exemplo n.º 1
0
 public function testAttendeeStatusWithValueToAndFromStringShouldMatch()
 {
     $this->attendeeStatus->value = "http://schemas.google.com/g/2005#event.accepted";
     $attendeeStatusXml = $this->attendeeStatus->saveXML();
     $newAttendeeStatus = new Extension\AttendeeStatus();
     $newAttendeeStatus->transferFromXML($attendeeStatusXml);
     $newAttendeeStatusXml = $newAttendeeStatus->saveXML();
     $this->assertTrue($attendeeStatusXml == $newAttendeeStatusXml);
     $this->assertEquals("http://schemas.google.com/g/2005#event.accepted", $this->attendeeStatus->value);
 }