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( - ""); + ""); $md = new markdown (); printf ($md->html ("file1.php or file2.php
"); - $md = new markdown (); - printf ($md->html ("_file1.php_ or _file2.php_")); - } - public function testCarriageReturn1 () { $this->expectOutputString("line1 line2
");