Skip to content

Commit 98caf21

Browse files
committed
Add test case for constructorsynopsis inside a warning admonition
1 parent 7356d97 commit 98caf21

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

tests/package/php/admonition_rendering_001.phpt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,14 @@ Content:
5656
</div>
5757
</div>
5858

59+
<div class="section">
60+
<p class="para">6. Warning with constructorsynopsis</p>
61+
<div class="warning"><h5 class="warning">Warning</h5>
62+
<p class="para">This constructor is deprecated:</p>
63+
<div class="constructorsynopsis dc-description"><span class="modifier">public</span>
64+
<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">$param</code></span>)</div>
65+
66+
</div>
67+
</div>
68+
5969
</div>

tests/package/php/data/admonition_rendering.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,16 @@
3636
</important>
3737
</section>
3838

39+
<section>
40+
<para>6. Warning with constructorsynopsis</para>
41+
<warning>
42+
<para>This constructor is deprecated:</para>
43+
<constructorsynopsis>
44+
<modifier>public</modifier>
45+
<methodname>ClassName::__construct</methodname>
46+
<methodparam><type>string</type><parameter>param</parameter></methodparam>
47+
</constructorsynopsis>
48+
</warning>
49+
</section>
50+
3951
</chapter>

0 commit comments

Comments
 (0)