1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
--TEST--
Exception rendering 003 - compare output of phpdoc:exceptionref and reference element with role="exception" rendering
--FILE--
<?php
namespace phpdotnet\phd;
require_once __DIR__ . "/../../setup.php";
$xmlFilePhpdoc = __DIR__ . "/data/exception_rendering_001.xml";
$config->xmlFile = $xmlFilePhpdoc;
$formatPhpdoc = new TestPHPChunkedXHTML($config, $outputHandler);
$renderPhpdoc = new TestRender(new Reader($outputHandler), $config, $formatPhpdoc);
ob_start();
$renderPhpdoc->run();
$phpdocOutput = ob_get_clean();
$xmlFileReferenceWithRole = __DIR__ . "/data/exception_rendering_002.xml";
$config->xmlFile = $xmlFileReferenceWithRole;
$formatReferenceWithRole = new TestPHPChunkedXHTML($config, $outputHandler);
$renderReferenceWithRole = new TestRender(new Reader($outputHandler), $config, $formatReferenceWithRole);
ob_start();
$renderReferenceWithRole->run();
$referenceWithRoleOutput = ob_get_clean();
var_dump($phpdocOutput === $referenceWithRoleOutput);
?>
--EXPECT--
bool(true)
|