exportCollection() public method

public exportCollection ( BaseCollection $collection ) : DOMDocument
$collection LazyRecord\BaseCollection
return DOMDocument
Example #1
0
 public function testExportCollection()
 {
     $book = new Book();
     $ret = $book->create(['title' => 'Run & Skate']);
     $this->assertResultSuccess($ret);
     $author = new Author();
     $ret = $author->create(array('name' => 'Z', 'email' => 'z@z', 'identity' => 'z'));
     $this->assertResultSuccess($ret);
     $exporter = new XMLExporter();
     $exporter->exportCollection(new BookCollection());
 }