summaryrefslogtreecommitdiff
path: root/test/gemtext.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/gemtext.php')
-rw-r--r--test/gemtext.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/gemtext.php b/test/gemtext.php
new file mode 100644
index 0000000..2cf7ed7
--- /dev/null
+++ b/test/gemtext.php
@@ -0,0 +1,27 @@
+<?php
+
+use GeminiFoundation\Gemtext;
+
+require dirname(__DIR__) . '/vendor/autoload.php';
+
+$parser = new Gemtext(<<<GEMTEXT
+ # heading
+
+ text
+
+ * listitem 1
+ * listitem 2
+
+ ```formatted
+ {
+ "key": "value"
+ }
+ ```
+
+ > quote
+
+ => /link
+ => /link link
+ GEMTEXT);
+
+var_dump($parser->parse());