public function testRender()
{
$d = new Dom(Dom::XHTML11, 'utf-8', new Child('p', 'This is another paragraph'));
$d->addChild(new Child('p', 'This is a paragraph'));
$code = $d->render(true);
ob_start();
$d->render();
$output = ob_get_clean();
$this->assertContains('<p>', $code);
$this->assertContains('<p>', $output);
}