예제 #1
0
파일: RowCountTest.php 프로젝트: rexmac/zf2
 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());
 }