Ejemplo n.º 1
0
 public function testPropertyWithValueToAndFromStringShouldMatch()
 {
     $this->theProperty->name = "foo2";
     $this->theProperty->value = "bar2";
     $propertyXml = $this->theProperty->saveXML();
     $newProperty = new Property();
     $newProperty->transferFromXML($propertyXml);
     $newPropertyXml = $newProperty->saveXML();
     $this->assertTrue($propertyXml == $newPropertyXml);
     $this->assertEquals("foo2", $this->theProperty->name);
     $this->assertEquals("bar2", $this->theProperty->value);
 }