From 7214101725c6fb672dbc165f9e5f9c7947dfd9d0 Mon Sep 17 00:00:00 2001
From: Bob van de Vijver
Some test text
'; + + $this->assertEquals( + "\nSome \\textbf{test} text\n\n", + Parser::parseHtml($text), + ); + } + + public function testSimpleNodeWithItalic(): void + { + $text = 'Some test text
'; + + $this->assertEquals( + "\nSome \\textit{test} text\n\n", + Parser::parseHtml($text), + ); + } + + public function testDoubleNode(): void + { + $text = 'Some test text
'; + + $this->assertEquals( + "\n\\textbf{Some} \\textit{test} text\n\n", + Parser::parseHtml($text), + ); + } + + public function testDoubleOverlappingNode(): void + { + $text = 'Some test text
'; + + $this->assertEquals( + "\n\\textbf{Some \\textit{test}} text\n\n", + Parser::parseHtml($text), + ); + } + + public function testDoubleEqualNode(): void + { + $text = 'Some test text
'; + + $this->assertEquals( + "\nSome \\textbf{\\textit{test}} text\n\n", + Parser::parseHtml($text), + ); + } +}