Skip to content

Commit f1cc1f3

Browse files
committed
[TASK] Add test to prove proper error handling for plantuml
refs #965
1 parent 87b2ace commit f1cc1f3

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- content start -->
2+
<div class="section" id="uml-directive">
3+
<h1>Uml Directive</h1>
4+
<figure
5+
class="uml-diagram"
6+
style="width: 1000" ><figcaption>Figure 1-1: Application flow</figcaption></figure>
7+
<figure
8+
class="uml-diagram"
9+
style="width: 1000" ><figcaption>Figure 1-1: Application flow</figcaption></figure>
10+
</div>
11+
<!-- content end -->
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
app.WARNING: Failed to render diagram using url: https://example.com/svg/u-9ApaaiBbRGjLF8Byb8BN86ywmKSbEBYnFJKxcu0000. The server returned status code 500. {"rst-file":"index"} []
2+
app.WARNING: Failed to render diagram using url: https://example.com/svg/u-9ApaaiBbRGjLF8Byb8BN86ywmKSbEBYnFJKxcu0000. The server returned status code 500. {"rst-file":"index"} []
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@startuml
2+
3+
class -> otherClass : message
4+
5+
@enduml
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<guides xmlns="https://www.phpdoc.org/guides"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="https://www.phpdoc.org/guides packages/guides-cli/resources/schema/guides.xsd">
5+
<extension class="phpDocumentor\Guides\Graphs">
6+
<renderer>plantuml-server</renderer>
7+
<plantuml-server>https://example.com</plantuml-server>
8+
</extension>
9+
</guides>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
==============
2+
Uml Directive
3+
==============
4+
5+
.. uml:: /Plantuml/something.plantuml
6+
:align: center
7+
:caption: Figure 1-1: Application flow
8+
:width: 1000
9+
10+
11+
.. uml:: Plantuml/something.plantuml
12+
:align: center
13+
:caption: Figure 1-1: Application flow
14+
:width: 1000

0 commit comments

Comments
 (0)