コード例 #1
0
ファイル: DocumentTest.php プロジェクト: phpbench/dom
 /**
  * It should create a root element.
  */
 public function testCreateRoot()
 {
     $this->document->createRoot('hello');
     $this->assertContains('<hello/>', $this->document->saveXml());
 }
コード例 #2
0
ファイル: DebugRenderer.php プロジェクト: stof/phpbench
 public function render(Document $reportsDocument, array $config)
 {
     $this->output->writeln('Report XML (debug):');
     $this->output->writeln($reportsDocument->saveXml());
 }