001cb71da3d27c55dfbfb59f7df416a851e5f6ed
[yaffs-website] / vendor / cebe / markdown / tests / MarkdownTest.php
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
8 namespace cebe\markdown\tests;
9
10 use cebe\markdown\Markdown;
11
12 /**
13  * Test case for traditional markdown.
14  *
15  * @author Carsten Brandt <mail@cebe.cc>
16  * @group default
17  */
18 class MarkdownTest extends BaseMarkdownTest
19 {
20         public function createMarkdown()
21         {
22                 return new Markdown();
23         }
24
25         public function getDataPaths()
26         {
27                 return [
28                         'markdown-data' => __DIR__ . '/markdown-data',
29                 ];
30         }
31
32         public function testEdgeCases()
33         {
34                 $this->assertEquals("<p>&amp;</p>\n", $this->createMarkdown()->parse('&'));
35                 $this->assertEquals("<p>&lt;</p>\n", $this->createMarkdown()->parse('<'));
36         }
37 }