Version 1
[yaffs-website] / vendor / cebe / markdown / tests / MarkdownTest.php
diff --git a/vendor/cebe/markdown/tests/MarkdownTest.php b/vendor/cebe/markdown/tests/MarkdownTest.php
new file mode 100644 (file)
index 0000000..001cb71
--- /dev/null
@@ -0,0 +1,37 @@
+<?php
+/**
+ * @copyright Copyright (c) 2014 Carsten Brandt
+ * @license https://github.com/cebe/markdown/blob/master/LICENSE
+ * @link https://github.com/cebe/markdown#readme
+ */
+
+namespace cebe\markdown\tests;
+
+use cebe\markdown\Markdown;
+
+/**
+ * Test case for traditional markdown.
+ *
+ * @author Carsten Brandt <mail@cebe.cc>
+ * @group default
+ */
+class MarkdownTest extends BaseMarkdownTest
+{
+       public function createMarkdown()
+       {
+               return new Markdown();
+       }
+
+       public function getDataPaths()
+       {
+               return [
+                       'markdown-data' => __DIR__ . '/markdown-data',
+               ];
+       }
+
+       public function testEdgeCases()
+       {
+               $this->assertEquals("<p>&amp;</p>\n", $this->createMarkdown()->parse('&'));
+               $this->assertEquals("<p>&lt;</p>\n", $this->createMarkdown()->parse('<'));
+       }
+}