Changeset 58424 for trunk/tests/phpunit/tests/kses.php
- Timestamp:
- 06/17/2024 12:02:50 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/kses.php
r58418 r58424 1937 1937 * @ticket 61009 1938 1938 * 1939 * @dataProvider data_html_containing_various_kinds_of_html_comments 1940 * 1939 1941 * @param string $html_comment HTML containing a comment; must not be a valid comment 1940 1942 * but must be syntax which a browser interprets as a comment. 1941 1943 * @param string $expected_output How `wp_kses()` ought to transform the comment. 1942 1944 */ 1943 public function wp_kses_preserves_html_comments( $html_comment, $expected_output ) {1945 public function test_wp_kses_preserves_html_comments( $html_comment, $expected_output ) { 1944 1946 $this->assertSame( 1945 1947 $expected_output, … … 1958 1960 'Normative HTML comment' => array( 'before<!-- this is a comment -->after', 'before<!-- this is a comment -->after' ), 1959 1961 'Closing tag with invalid tag name' => array( 'before<//not a tag>after', 'before<//not a tag>after' ), 1962 'Incorrectly opened comment (Markup declaration)' => array( 'before<!also not a tag>after', 'before<!also not a tag>after' ), 1960 1963 ); 1961 1964 }
Note: See TracChangeset
for help on using the changeset viewer.