From afe229d34366e0aef0d726727fd8e8d302c5ace4 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Fri, 1 Aug 2014 16:45:09 +1200 Subject: [PATCH] Remove outdated dependancy. Fixes #46 --- composer.json | 1 - tests/DocumentationParserTest.php | 20 -------------------- 2 files changed, 21 deletions(-) diff --git a/composer.json b/composer.json index 555b552..1f82217 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,6 @@ }], "require": { "silverstripe/framework": "~3.1", - "erusev/parsedown": "dev-fixgreaterthan as ~1.0", "erusev/parsedown-extra": "0.1.0" }, "repositories": [{ diff --git a/tests/DocumentationParserTest.php b/tests/DocumentationParserTest.php index b68920e..6a9ab6a 100755 --- a/tests/DocumentationParserTest.php +++ b/tests/DocumentationParserTest.php @@ -246,26 +246,6 @@ HTML; $this->assertEquals("Foo Bar's Test page.", $page->Title); } - function testParserConvertsSpecialCharacters() { - $page = new DocumentationPage(); - $page->setRelativePath('CodeSnippets.md'); - $page->setEntity(new DocumentationEntity('parser', '2.4', DOCSVIEWER_PATH . '/tests/docs-parser/')); - - $parsed = DocumentationParser::parse($page, '/'.DOCSVIEWER_DIR .'/tests/docs-parser/'); - - // header elements parsed - $this->assertContains( - '<% control Foo %>', - $parsed - ); - - // paragraphs - $this->assertContains( - '<% foo %>', - $parsed - ); - } - function testRewritingRelativeLinksToFiles() { $folder = DOCSVIEWER_PATH . '/tests/docs-parser/';