From 544ef3bc588d4180d7ecad15bdacd43813a7c5c5 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 12 Dec 2019 14:51:10 +0000 Subject: update composer libs and minor notifications display fixes --- vendor/michelf/php-markdown/test/bootstrap.php | 6 + .../test/helpers/MarkdownTestHelper.php | 267 ++++++ .../test/integration/PhpMarkdownTest.php | 173 ++++ .../markdown.mdtest/Amps and angle encoding.text | 21 + .../markdown.mdtest/Amps and angle encoding.xhtml | 17 + .../test/resources/markdown.mdtest/Auto links.text | 13 + .../resources/markdown.mdtest/Auto links.xhtml | 18 + .../markdown.mdtest/Backslash escapes.text | 120 +++ .../markdown.mdtest/Backslash escapes.xhtml | 118 +++ .../Blockquotes with code blocks.text | 11 + .../Blockquotes with code blocks.xhtml | 15 + .../resources/markdown.mdtest/Code Blocks.text | 14 + .../resources/markdown.mdtest/Code Blocks.xhtml | 18 + .../test/resources/markdown.mdtest/Code Spans.text | 5 + .../resources/markdown.mdtest/Code Spans.xhtml | 5 + ...rd-wrapped paragraphs with list-like lines.text | 8 + ...d-wrapped paragraphs with list-like lines.xhtml | 8 + .../markdown.mdtest/Horizontal rules.text | 67 ++ .../markdown.mdtest/Horizontal rules.xhtml | 71 ++ .../test/resources/markdown.mdtest/Images.text | 26 + .../test/resources/markdown.mdtest/Images.xhtml | 21 + .../markdown.mdtest/Inline HTML (Advanced).text | 30 + .../markdown.mdtest/Inline HTML (Advanced).xhtml | 30 + .../markdown.mdtest/Inline HTML (Simple).html | 72 ++ .../markdown.mdtest/Inline HTML (Simple).text | 69 ++ .../markdown.mdtest/Inline HTML comments.html | 13 + .../markdown.mdtest/Inline HTML comments.text | 13 + .../markdown.mdtest/Links, inline style.text | 24 + .../markdown.mdtest/Links, inline style.xhtml | 23 + .../markdown.mdtest/Links, reference style.text | 71 ++ .../markdown.mdtest/Links, reference style.xhtml | 52 ++ .../Links, shortcut references.text | 20 + .../Links, shortcut references.xhtml | 9 + .../markdown.mdtest/Literal quotes in titles.text | 7 + .../markdown.mdtest/Literal quotes in titles.xhtml | 3 + .../Markdown Documentation - Basics.text | 306 +++++++ .../Markdown Documentation - Basics.xhtml | 314 +++++++ .../Markdown Documentation - Syntax.text | 888 +++++++++++++++++++ .../Markdown Documentation - Syntax.xhtml | 942 +++++++++++++++++++++ .../markdown.mdtest/Nested blockquotes.text | 5 + .../markdown.mdtest/Nested blockquotes.xhtml | 9 + .../Ordered and unordered lists.text | 131 +++ .../Ordered and unordered lists.xhtml | 148 ++++ .../markdown.mdtest/Strong and em together.text | 7 + .../markdown.mdtest/Strong and em together.xhtml | 7 + .../test/resources/markdown.mdtest/Tabs.text | 21 + .../test/resources/markdown.mdtest/Tabs.xhtml | 25 + .../test/resources/markdown.mdtest/Tidyness.text | 5 + .../test/resources/markdown.mdtest/Tidyness.xhtml | 8 + .../resources/php-markdown-extra.mdtest/Abbr.text | 31 + .../resources/php-markdown-extra.mdtest/Abbr.xhtml | 15 + .../Backtick Fenced Code Blocks Special Cases.text | 69 ++ ...Backtick Fenced Code Blocks Special Cases.xhtml | 61 ++ .../Backtick Fenced Code Blocks.text | 123 +++ .../Backtick Fenced Code Blocks.xhtml | 109 +++ .../Definition Lists.text | 115 +++ .../Definition Lists.xhtml | 155 ++++ .../php-markdown-extra.mdtest/Emphasis.text | 100 +++ .../php-markdown-extra.mdtest/Emphasis.xhtml | 106 +++ .../php-markdown-extra.mdtest/Footnotes.text | 70 ++ .../php-markdown-extra.mdtest/Footnotes.xhtml | 103 +++ .../Headers with attributes.text | 41 + .../Headers with attributes.xhtml | 37 + .../Inline HTML with Markdown content.text | 110 +++ .../Inline HTML with Markdown content.xhtml | 131 +++ .../Link & Image Attributes.text | 10 + .../Link & Image Attributes.xhtml | 8 + .../php-markdown-extra.mdtest/Tables.text | 113 +++ .../php-markdown-extra.mdtest/Tables.xhtml | 333 ++++++++ .../Tilde Fenced Code Blocks Special Cases.text | 69 ++ .../Tilde Fenced Code Blocks Special Cases.xhtml | 61 ++ .../Tilde Fenced Code Blocks.text | 123 +++ .../Tilde Fenced Code Blocks.xhtml | 109 +++ .../php-markdown.mdtest/Adjacent Lists.text | 10 + .../php-markdown.mdtest/Adjacent Lists.xhtml | 19 + .../resources/php-markdown.mdtest/Auto Links.text | 3 + .../resources/php-markdown.mdtest/Auto Links.xhtml | 3 + .../php-markdown.mdtest/Backslash escapes.text | 1 + .../php-markdown.mdtest/Backslash escapes.xhtml | 1 + .../resources/php-markdown.mdtest/Code Spans.text | 6 + .../resources/php-markdown.mdtest/Code Spans.xhtml | 6 + .../Code block in a list item.text | 15 + .../Code block in a list item.xhtml | 18 + .../Code block on second line.text | 2 + .../Code block on second line.xhtml | 2 + .../Code block regressions.text | 15 + .../Code block regressions.xhtml | 18 + .../php-markdown.mdtest/Email auto links.text | 24 + .../php-markdown.mdtest/Email auto links.xhtml | 23 + .../resources/php-markdown.mdtest/Emphasis.text | 101 +++ .../resources/php-markdown.mdtest/Emphasis.xhtml | 105 +++ .../php-markdown.mdtest/Empty List Item.text | 35 + .../php-markdown.mdtest/Empty List Item.xhtml | 47 + .../resources/php-markdown.mdtest/Headers.text | 9 + .../resources/php-markdown.mdtest/Headers.xhtml | 39 + .../php-markdown.mdtest/Horizontal Rules.text | 29 + .../php-markdown.mdtest/Horizontal Rules.xhtml | 30 + .../php-markdown.mdtest/Inline HTML (Simple).html | 25 + .../php-markdown.mdtest/Inline HTML (Simple).text | 25 + .../php-markdown.mdtest/Inline HTML (Span).text | 4 + .../php-markdown.mdtest/Inline HTML (Span).xhtml | 4 + .../php-markdown.mdtest/Inline HTML comments.html | 9 + .../php-markdown.mdtest/Inline HTML comments.text | 9 + .../resources/php-markdown.mdtest/Ins & del.text | 17 + .../resources/php-markdown.mdtest/Ins & del.xhtml | 17 + .../php-markdown.mdtest/Links, inline style.text | 9 + .../php-markdown.mdtest/Links, inline style.xhtml | 7 + .../resources/php-markdown.mdtest/MD5 Hashes.text | 11 + .../resources/php-markdown.mdtest/MD5 Hashes.xhtml | 11 + .../php-markdown.mdtest/Mixed OLs and ULs.text | 13 + .../php-markdown.mdtest/Mixed OLs and ULs.xhtml | 21 + .../resources/php-markdown.mdtest/Nesting.text | 11 + .../resources/php-markdown.mdtest/Nesting.xhtml | 11 + .../php-markdown.mdtest/PHP-Specific Bugs.text | 22 + .../php-markdown.mdtest/PHP-Specific Bugs.xhtml | 17 + .../php-markdown.mdtest/Parens in URL.text | 14 + .../php-markdown.mdtest/Parens in URL.xhtml | 11 + .../php-markdown.mdtest/Quotes in attributes.text | 5 + .../php-markdown.mdtest/Quotes in attributes.xhtml | 5 + .../php-markdown.mdtest/Tight blocks.text | 1 + .../php-markdown.mdtest/Tight blocks.xhtml | 21 + .../php-markdown.mdtest/XML empty tag.text | 2 + .../php-markdown.mdtest/XML empty tag.xhtml | 2 + .../php-markdown/test/unit/MarkdownExtraTest.php | 51 ++ 124 files changed, 7392 insertions(+) create mode 100644 vendor/michelf/php-markdown/test/bootstrap.php create mode 100644 vendor/michelf/php-markdown/test/helpers/MarkdownTestHelper.php create mode 100644 vendor/michelf/php-markdown/test/integration/PhpMarkdownTest.php create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Amps and angle encoding.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Amps and angle encoding.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Auto links.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Auto links.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Backslash escapes.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Backslash escapes.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Blockquotes with code blocks.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Blockquotes with code blocks.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Code Blocks.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Code Blocks.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Code Spans.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Code Spans.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Hard-wrapped paragraphs with list-like lines.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Hard-wrapped paragraphs with list-like lines.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Horizontal rules.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Horizontal rules.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Images.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Images.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Inline HTML (Advanced).text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Inline HTML (Advanced).xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Inline HTML (Simple).html create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Inline HTML (Simple).text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Inline HTML comments.html create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Inline HTML comments.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Links, inline style.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Links, inline style.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Links, reference style.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Links, reference style.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Links, shortcut references.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Links, shortcut references.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Literal quotes in titles.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Literal quotes in titles.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Markdown Documentation - Basics.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Markdown Documentation - Basics.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Markdown Documentation - Syntax.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Markdown Documentation - Syntax.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Nested blockquotes.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Nested blockquotes.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Ordered and unordered lists.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Ordered and unordered lists.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Strong and em together.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Strong and em together.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Tabs.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Tabs.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Tidyness.text create mode 100644 vendor/michelf/php-markdown/test/resources/markdown.mdtest/Tidyness.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Abbr.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Abbr.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Backtick Fenced Code Blocks Special Cases.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Backtick Fenced Code Blocks Special Cases.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Backtick Fenced Code Blocks.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Backtick Fenced Code Blocks.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Definition Lists.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Definition Lists.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Emphasis.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Emphasis.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Footnotes.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Footnotes.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Headers with attributes.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Headers with attributes.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Inline HTML with Markdown content.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Inline HTML with Markdown content.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Link & Image Attributes.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Link & Image Attributes.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Tables.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Tables.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Tilde Fenced Code Blocks Special Cases.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Tilde Fenced Code Blocks Special Cases.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Tilde Fenced Code Blocks.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Tilde Fenced Code Blocks.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Adjacent Lists.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Adjacent Lists.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Auto Links.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Auto Links.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Backslash escapes.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Backslash escapes.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Code Spans.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Code Spans.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Code block in a list item.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Code block in a list item.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Code block on second line.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Code block on second line.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Code block regressions.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Code block regressions.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Email auto links.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Email auto links.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Emphasis.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Emphasis.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Empty List Item.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Empty List Item.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Headers.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Headers.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Horizontal Rules.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Horizontal Rules.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Inline HTML (Simple).html create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Inline HTML (Simple).text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Inline HTML (Span).text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Inline HTML (Span).xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Inline HTML comments.html create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Inline HTML comments.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Ins & del.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Ins & del.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Links, inline style.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Links, inline style.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/MD5 Hashes.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/MD5 Hashes.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Mixed OLs and ULs.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Mixed OLs and ULs.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Nesting.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Nesting.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/PHP-Specific Bugs.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/PHP-Specific Bugs.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Parens in URL.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Parens in URL.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Quotes in attributes.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Quotes in attributes.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Tight blocks.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/Tight blocks.xhtml create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/XML empty tag.text create mode 100644 vendor/michelf/php-markdown/test/resources/php-markdown.mdtest/XML empty tag.xhtml create mode 100644 vendor/michelf/php-markdown/test/unit/MarkdownExtraTest.php (limited to 'vendor/michelf/php-markdown/test') diff --git a/vendor/michelf/php-markdown/test/bootstrap.php b/vendor/michelf/php-markdown/test/bootstrap.php new file mode 100644 index 000000000..a7b3507d0 --- /dev/null +++ b/vendor/michelf/php-markdown/test/bootstrap.php @@ -0,0 +1,6 @@ +loadXML('' . + "" . + "$t_result"); + + $document2 = new DOMDocument(); + $doc_output = $document2->loadXML('' . + "" . + "$t_output"); + + if ($doc_result) { + static::normalizeElementContent($document->documentElement, false); + $n_result = $document->saveXML(); + } else { + $n_result = '--- Expected Result: XML Parse Error ---'; + } + if ($doc_output) { + static::normalizeElementContent($document2->documentElement, false); + $n_output = $document2->saveXML(); + } else { + $n_output = '--- Output: XML Parse Error ---'; + } + } else { + + // '@' suppressors used because some tests have invalid HTML (multiple elements with the same id attribute) + // Perhaps isolate to a separate test and remove this? + + $document = new DOMDocument(); + $doc_result = @$document->loadHTML($t_result); + + $document2 = new DOMDocument(); + $doc_output = @$document2->loadHTML($t_output); + + if ($doc_result) { + static::normalizeElementContent($document->documentElement, false); + $n_result = $document->saveHTML(); + } else { + $n_result = '--- Expected Result: HTML Parse Error ---'; + } + + if ($doc_output) { + static::normalizeElementContent($document2->documentElement, false); + $n_output = $document2->saveHTML(); + } else { + $n_output = '--- Output: HTML Parse Error ---'; + } + } + + $n_result = preg_replace('{^.*?|.*?$}is', '', $n_result); + $n_output = preg_replace('{^.*?|.*?$}is', '', $n_output); + + $c_result = $n_result; + $c_output = $n_output; + + $c_result = trim($c_result) . "\n"; + $c_output = trim($c_output) . "\n"; + + // This will throw a test exception if the strings don't exactly match + TestCase::assertSame($c_result, $c_output, $message); + } + + /** + * @param DOMElement $element Modifies this element by reference + * @param bool $whitespace_preserve Preserve Whitespace + * @return void + */ + protected static function normalizeElementContent($element, $whitespace_preserve) { + # + # Normalize content of HTML DOM $element. The $whitespace_preserve + # argument indicates that whitespace is significant and shouldn't be + # normalized; it should be used for the content of certain elements like + #
 or