public function testCreateDocumentFromDocbook()
 {
     $doc = new ezcDocumentDocbook();
     $doc->loadFile(dirname(__FILE__) . '/files/docbook/wiki/s_001_empty.xml');
     $wiki = new ezcDocumentWiki();
     $wiki->createFromDocbook($doc);
     $this->assertSame($wiki->save(), file_get_contents(dirname(__FILE__) . '/files/docbook/wiki/s_001_empty.txt'));
 }
Exemplo n.º 2
0
<?php

require 'tutorial_autoload.php';
$docbook = new ezcDocumentDocbook();
$docbook->loadFile('docbook.xml');
$document = new ezcDocumentWiki();
$document->createFromDocbook($docbook);
echo $document->save();