From 6386af1397909de8b224fb14916a79d4a30971ed Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 9 Sep 2014 11:51:25 +0000 Subject: [PATCH] Add more markdown tests git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1800 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- Tests/markdownTest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Tests/markdownTest.php b/Tests/markdownTest.php index 76403d2..038c160 100644 --- a/Tests/markdownTest.php +++ b/Tests/markdownTest.php @@ -334,4 +334,18 @@ end")); line2 line3.")); } + + public function testHTMLSpecialChars1 () + { + $this->expectOutputString("

toto&titi

"); + $md = new markdown (); + printf ($md->html ("toto&titi")); + } + + public function testHTMLSpecialChars2 () + { + $this->expectOutputString("

totoétiti

"); + $md = new markdown (); + printf ($md->html ("totoétiti")); + } }