Version 1
[yaffs-website] / vendor / cebe / markdown / tests / MarkdownOLStartNumTest.php
diff --git a/vendor/cebe/markdown/tests/MarkdownOLStartNumTest.php b/vendor/cebe/markdown/tests/MarkdownOLStartNumTest.php
new file mode 100644 (file)
index 0000000..01788e3
--- /dev/null
@@ -0,0 +1,32 @@
+<?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 support ordered lists at arbitrary number(`start` html attribute)
+ * @author Maxim Hodyrew <maximkou@gmail.com>
+ * @group default
+ */
+class MarkdownOLStartNumTest extends BaseMarkdownTest
+{
+       public function createMarkdown()
+       {
+               $markdown = new Markdown();
+               $markdown->keepListStartNumber = true;
+               return $markdown;
+       }
+
+       public function getDataPaths()
+       {
+               return [
+                       'markdown-data' => __DIR__ . '/markdown-ol-start-num-data',
+               ];
+       }
+}