Exemplo n.º 1
0
 public function testToAndFromString()
 {
     $this->rowCount->setText('20');
     $this->assertTrue($this->rowCount->getText() == '20');
     $newRowCount = new Extension\RowCount();
     $doc = new \DOMDocument();
     $doc->loadXML($this->rowCount->saveXML());
     $newRowCount->transferFromDom($doc->documentElement);
     $this->assertTrue($this->rowCount->getText() == $newRowCount->getText());
 }