Skip to content

Commit 60920d2

Browse files
Tests: Add documentation for newline preservation test
1 parent 98fc44d commit 60920d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/phpunit/tests/formatting/stripHtmlNewlines.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ public function test_strips_newlines_from_text_nodes() {
2525
'Newlines within and around inline elements should be stripped.'
2626
);
2727
}
28+
29+
/**
30+
*
31+
* @ticket 5678
32+
*/
2833
public function test_preserves_newlines_in_preformatted_elements() {
2934
$input = "<p>Normal\ntext</p>\n<pre>\nPreformatted\nlines\n</pre>\n<p>More\ntext</p>";
3035
$result = strip_html_newlines( $input );

0 commit comments

Comments
 (0)