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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
|
--TEST--
Class rendering 001 - phpdoc:classref rendering
--FILE--
<?php
namespace phpdotnet\phd;
require_once __DIR__ . "/../../setup.php";
$xml_file = __DIR__ . "/data/class_rendering_001.xml";
$config->setXml_file($xml_file);
$format = new TestPHPChunkedXHTML($config, $outputHandler);
$render = new TestRender(new Reader($outputHandler), $config, $format);
$render->run();
?>
--EXPECTF--
Filename: classname.construct.html
Content:
<div id="classname.construct" class="refentry">
<div class="refnamediv">
<h1 class="refname">ClassName::__construct</h1>
<p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">ClassName::__construct</span> — <span class="dc-title">Returns new ClassName object</span></p>
</div>
<div class="refsect1 description" id="refsect1-classname.construct-description">
Description
<div class="constructorsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>ClassName::__construct</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.html" class="type string">string</a></span> <code class="parameter">$firstParameter</code><span class="initializer"> = "now"</span></span>)</div>
<p class="para rdfs-comment">
Returns new a ClassName object.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-classname.construct-parameters">
<h3 class="title">Parameters</h3>
<dl>
<dt><code class="parameter">firstParameter</code></dt>
<dd>
<p class="para">
The description of the parameter.
</p>
</dd>
</dl>
</div>
<div class="refsect1 returnvalues" id="refsect1-classname.construct-returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
Return values of the method.
</p>
</div>
<div class="refsect1 errors" id="refsect1-classname.construct-errors">
<h3 class="title">Errors/Exceptions</h3>
<p class="para">
Exceptions thrown and/or errors raised by the method.
</p>
</div>
</div>
Filename: class.classname.html
Content:
<div id="class.classname" class="reference">
<h1 class="title">The ClassName class</h1>
<div class="partintro"><p class="verinfo">(No version information available, might only be in Git)</p>
<div class="section" id="classname.intro">
<h2 class="title">Introduction</h2>
<p class="para">
Introductory paragraph about the class.
</p>
</div>
<div class="section" id="classname.synopsis">
<h2 class="title">Class synopsis</h2>
<div class="classsynopsis"><div class="classsynopsisinfo">
<span class="modifier">class</span> <strong class="classname"><strong class="classname">ClassName</strong></strong>
<span class="modifier">implements</span>
<strong class="interfacename">InterfaceName</strong> {</div>
<div class="classsynopsisinfo classsynopsisinfo_comment">/* Constants */</div>
<div class="fieldsynopsis">
<span class="modifier">public</span>
<span class="modifier">const</span>
<span class="type"><a href="language.types.string.html" class="type string">string</a></span>
<var class="fieldsynopsis_varname"><a href=".html#classname.constants.first-constant"><var class="varname">FIRST_CONSTANT</var></a></var><span class="initializer"> = "Initial value"</span>;</div>
<div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
}</div>
</div>
<div class="section" id="classname.constants.types">
<h2 class="title">Predefined Constants</h2>
<dl>
<dt id="classname.constants.first-constant"><strong><code>ClassName::FIRST_CONSTANT</code></strong></dt>
<dd>
<span class="simpara">
The description of the class constant.
</span>
</dd>
</dl>
</div>
</div>
</div>
|