@@ 127-133 (lines=7) @@ | ||
124 | /** |
|
125 | * Test render markdown text |
|
126 | */ |
|
127 | public function testRender() |
|
128 | { |
|
129 | $output = $this->markdown->render('Hello world FlexyProject/GitHubAPI#43 **cool**, and #43!'); |
|
130 | ||
131 | $this->assertEquals('<p>Hello world FlexyProject/GitHubAPI#43 <strong>cool</strong>, and #43!</p>', |
|
132 | str_replace(["\r\n", "\r", "\n"], "", $output[0])); |
|
133 | } |
|
134 | ||
135 | /** |
|
136 | * Test render markdown raw text |
|
@@ 138-144 (lines=7) @@ | ||
135 | /** |
|
136 | * Test render markdown raw text |
|
137 | */ |
|
138 | public function testRenderRaw() |
|
139 | { |
|
140 | $output = $this->markdown->renderRaw('**cool**'); |
|
141 | ||
142 | $this->assertEquals('<p>{"file":"<strong>cool</strong>"}</p>', |
|
143 | str_replace(["\r\n", "\r", "\n"], "", $output[0])); |
|
144 | } |
|
145 | ||
146 | /** |
|
147 | * Test getting meta about GitHub.com |