| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function testReturnStringContainsExpectedContent() |
||
| 25 | { |
||
| 26 | $markdown = "# Level 1\n## Level 2\n### Level 3\n"; |
||
| 27 | $result = (new GeneratesSidebarTableOfContents($markdown))->execute(); |
||
| 28 | |||
| 29 | $this->assertEquals('<ul class="table-of-contents"><li><a href="#level-2">Level 2</a><ul><li><a href="#level-3">Level 3</a></li></ul></li></ul>', str_replace("\n", '', $result)); |
||
| 30 | } |
||
| 32 |