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--
Class rendering 003 - compare output of phpdoc:classref and reference element with role="class" rendering
--FILE--
<?php
namespace phpdotnet\phd;
require_once __DIR__ . "/../../setup.php";
$xml_filePhpdoc = __DIR__ . "/data/class_rendering_001.xml";
$config->setXml_file($xml_filePhpdoc);
$formatPhpdoc = new TestPHPChunkedXHTML($config, $outputHandler);
$renderPhpdoc = new TestRender(new Reader($outputHandler), $config, $formatPhpdoc);
ob_start();
$renderPhpdoc->run();
$phpdocOutput = ob_get_clean();
$xml_fileReferenceWithRole = __DIR__ . "/data/class_rendering_002.xml";
$config->setXml_file($xml_fileReferenceWithRole);
$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)
|