33 line
691B

  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2014 Carsten Brandt
  4. * @license https://github.com/cebe/markdown/blob/master/LICENSE
  5. * @link https://github.com/cebe/markdown#readme
  6. */
  7. namespace cebe\markdown\tests;
  8. use cebe\markdown\Markdown;
  9. /**
  10. * Test support ordered lists at arbitrary number(`start` html attribute)
  11. * @author Maxim Hodyrew <maximkou@gmail.com>
  12. * @group default
  13. */
  14. class MarkdownOLStartNumTest extends BaseMarkdownTest
  15. {
  16. public function createMarkdown()
  17. {
  18. $markdown = new Markdown();
  19. $markdown->keepListStartNumber = true;
  20. return $markdown;
  21. }
  22. public function getDataPaths()
  23. {
  24. return [
  25. 'markdown-data' => __DIR__ . '/markdown-ol-start-num-data',
  26. ];
  27. }
  28. }