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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
--TEST--
Variablelist rendering 001
--FILE--
<?php
namespace phpdotnet\phd;
require_once __DIR__ . "/../../setup.php";
$xmlFile = __DIR__ . "/data/variablelist_rendering_001.xml";
$config->xmlFile = $xmlFile;
$format = new TestPHPChunkedXHTML($config, $outputHandler);
$render = new TestRender(new Reader($outputHandler), $config, $format);
$render->run();
?>
--EXPECTF--
Filename: variablelist-rendering.html
Content:
<div id="variablelist-rendering" class="chapter">
<div class="section">
<p class="para">%d. Variablelist with no role</p>
<dl>
<dt id="constant.variablelist-test-constant"><strong><code>VARIABLELIST_TEST_CONSTANT</code></strong></dt>
<dd>
<span class="simpara">
Description of constant
</span>
</dd>
</dl>
</div>
<div class="section">
<p class="para">%d. Variablelist with role="constant_list"</p>
<table class="doctable table">
<tr>
<th>Constants</th>
<th>Description</th>
</tr>
<tr>
<td id="constant.variablelist-test-constant-in-constant-list"><strong><code>VARIABLELIST_TEST_CONSTANT_IN_CONSTANT_LIST</code></strong></td>
<td>
<span class="simpara">
<code class="literal">literal</code> will add its own "role"
</span>
</td>
</tr>
<tr>
<td id="constant.variablelist-test-constant-in-constant-list2"><strong><code>VARIABLELIST_TEST_CONSTANT_IN_CONSTANT_LIST2</code></strong></td>
<td>
<span class="simpara">
Role should have not been overwritten by literal
</span>
</td>
</tr>
</table>
</div>
</div>
|