From 5315e46fc181ee33ff42afa64b6f170429eab8ae Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 3 Sep 2014 12:51:35 +0000 Subject: [PATCH] Add more Markdown unittests git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1792 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- Tests/markdownTest.php | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/Tests/markdownTest.php b/Tests/markdownTest.php index 417e276..45bd12a 100644 --- a/Tests/markdownTest.php +++ b/Tests/markdownTest.php @@ -138,11 +138,26 @@ class test_markdown extends PHPUnit_Framework_TestCase } public function testEmphasisEM2 () + { + $this->expectOutputString("

file1.php or file2.php

"); + $md = new markdown (); + printf ($md->html ("_file1.php_ or _file2.php_")); + } + + public function testEmphasisEM3 () { $this->expectOutputString("

text

"); $md = new markdown (); printf ($md->html ("*text*")); } + + public function testEmphasisEM4 () + { + $this->expectOutputString("

text or text2

"); + $md = new markdown (); + printf ($md->html ("*text* or *text2*")); + } + // Unnumbered lists public function testUnnumbered1 () { @@ -261,7 +276,7 @@ base"); public function testLinkHTTP3 () { $this->expectOutputString( - "

test@example.com

"); + "

test@example.com

"); $md = new markdown (); printf ($md->html ("")); } @@ -295,13 +310,6 @@ base"); end")); } - public function testUnderscore () - { - $this->expectOutputString("

file1.php or file2.php

"); - $md = new markdown (); - printf ($md->html ("_file1.php_ or _file2.php_")); - } - public function testCarriageReturn1 () { $this->expectOutputString("

line1 line2

");