test ' );
@@ -494,7 +494,7 @@ public function test_can_modify_attributes_after_finding_tag() {
*
* @ticket 58517
*
- * @covers WP_HTML_Processor::next_tag
+ * [@]covers WP_HTML_Processor::next_tag
*/
public function test_can_query_an_element_by_tag_name() {
$processor = WP_HTML_Processor::create_fragment( '
' );
@@ -511,7 +511,7 @@ public function test_can_query_an_element_by_tag_name() {
*
* @ticket 58517
*
- * @covers WP_HTML_Processor::seek
+ * [@]covers WP_HTML_Processor::seek
*/
public function test_can_seek_back_and_forth() {
$processor = WP_HTML_Processor::create_fragment(
diff --git a/tests/phpunit/tests/html-api/wpHtmlProcessorSemanticRules.php b/tests/phpunit/tests/html-api/wpHtmlProcessorSemanticRules.php
index 7362a588cf3f4..ef3c2a75e7b3c 100644
--- a/tests/phpunit/tests/html-api/wpHtmlProcessorSemanticRules.php
+++ b/tests/phpunit/tests/html-api/wpHtmlProcessorSemanticRules.php
@@ -20,7 +20,7 @@ class Tests_HtmlApi_WpHtmlProcessorSemanticRules extends WP_UnitTestCase {
* Verifies that tags in the container group, including the ARTICLE element,
* close out an open P element if one exists.
*
- * @covers WP_HTML_Processor::step_in_body
+ * [@]covers WP_HTML_Processor::step_in_body
*
* @ticket 59914
*
@@ -52,7 +52,7 @@ public function test_in_body_article_group_closes_open_p_element( $tag_name ) {
* Verifies that tags in the container group, including the ARTICLE element,
* nest inside each other despite being invalid in most cases.
*
- * @covers WP_HTML_Processor::step_in_body
+ * [@]covers WP_HTML_Processor::step_in_body
*
* @ticket 59914
*
@@ -348,7 +348,7 @@ public static function data_heading_combinations() {
* that the HTML processor ignores the end tag if there's a special
* element on the stack of open elements before the matching opening.
*
- * @covers WP_HTML_Processor::step_in_body
+ * [@]covers WP_HTML_Processor::step_in_body
*
* @ticket 58907
*
@@ -371,7 +371,7 @@ public function test_in_body_any_other_end_tag_with_unclosed_special_element() {
* that the HTML processor closes appropriate elements on the stack of
* open elements up to the matching opening.
*
- * @covers WP_HTML_Processor::step_in_body
+ * [@]covers WP_HTML_Processor::step_in_body
*
* @ticket 58907
*
@@ -407,7 +407,7 @@ public function test_in_body_any_other_end_tag_with_unclosed_non_special_element
* into the existing unsupported tag behavior test because the opening tag is supported;
* only the closing tag isn't.
*
- * @covers WP_HTML_Processor::step_in_body
+ * [@]covers WP_HTML_Processor::step_in_body
*
* @ticket 60283
*/
diff --git a/tests/phpunit/tests/html-api/wpHtmlProcessorSemanticRulesHeadingElements.php b/tests/phpunit/tests/html-api/wpHtmlProcessorSemanticRulesHeadingElements.php
index b33c6e072dfb1..692edcb431fa7 100644
--- a/tests/phpunit/tests/html-api/wpHtmlProcessorSemanticRulesHeadingElements.php
+++ b/tests/phpunit/tests/html-api/wpHtmlProcessorSemanticRulesHeadingElements.php
@@ -22,7 +22,7 @@ class Tests_HtmlApi_WpHtmlProcessorSemanticRulesHeadingElements extends WP_UnitT
*
* @ticket 60060
*
- * @covers WP_HTML_Processor::step
+ * [@]covers WP_HTML_Processor::step
*
* @dataProvider data_heading_elements
*
@@ -69,7 +69,7 @@ public static function data_heading_elements() {
*
* @ticket 60060
*
- * @covers WP_HTML_Processor::step
+ * [@]covers WP_HTML_Processor::step
*
* @dataProvider data_heading_combinations
*
diff --git a/tests/phpunit/tests/html-api/wpHtmlSupportRequiredHtmlProcessor.php b/tests/phpunit/tests/html-api/wpHtmlSupportRequiredHtmlProcessor.php
index 2d3cd21ce461b..4dd8abcf24dac 100644
--- a/tests/phpunit/tests/html-api/wpHtmlSupportRequiredHtmlProcessor.php
+++ b/tests/phpunit/tests/html-api/wpHtmlSupportRequiredHtmlProcessor.php
@@ -55,7 +55,7 @@ private function ensure_support_is_added_everywhere( $tag_name ) {
*
* @ticket 58907
*
- * @covers WP_HTML_Processor::generate_implied_end_tags
+ * [@]covers WP_HTML_Processor::generate_implied_end_tags
*/
public function test_generate_implied_end_tags_needs_support() {
$this->ensure_support_is_added_everywhere( 'OPTGROUP' );
@@ -74,7 +74,7 @@ public function test_generate_implied_end_tags_needs_support() {
*
* @ticket 58907
*
- * @covers WP_HTML_Processor::generate_implied_end_tags_thoroughly
+ * [@]covers WP_HTML_Processor::generate_implied_end_tags_thoroughly
*/
public function test_generate_implied_end_tags_thoroughly_needs_support() {
$this->ensure_support_is_added_everywhere( 'CAPTION' );
diff --git a/tests/phpunit/tests/html-api/wpHtmlSupportRequiredOpenElements.php b/tests/phpunit/tests/html-api/wpHtmlSupportRequiredOpenElements.php
index c2e8c697e8156..4849fe170f9c4 100644
--- a/tests/phpunit/tests/html-api/wpHtmlSupportRequiredOpenElements.php
+++ b/tests/phpunit/tests/html-api/wpHtmlSupportRequiredOpenElements.php
@@ -96,7 +96,7 @@ public function test_has_element_in_scope_needs_support() {
*
* @ticket 58517
*
- * @covers WP_HTML_Open_Elements::has_element_in_list_item_scope
+ * [@]covers WP_HTML_Open_Elements::has_element_in_list_item_scope
*/
public function test_has_element_in_list_item_scope_needs_support() {
// These elements impact all scopes.
@@ -130,7 +130,7 @@ public function test_has_element_in_list_item_scope_needs_support() {
*
* @ticket 58517
*
- * @covers WP_HTML_Open_Elements::has_element_in_button_scope
+ * [@]covers WP_HTML_Open_Elements::has_element_in_button_scope
*/
public function test_has_element_in_button_scope_needs_support() {
// These elements impact all scopes.
@@ -165,7 +165,7 @@ public function test_has_element_in_button_scope_needs_support() {
*
* @ticket 58517
*
- * @covers WP_HTML_Open_Elements::after_element_pop
+ * [@]covers WP_HTML_Open_Elements::after_element_pop
*/
public function test_after_element_pop_must_maintain_p_in_button_scope_flag() {
// These elements impact all scopes.
@@ -200,7 +200,7 @@ public function test_after_element_pop_must_maintain_p_in_button_scope_flag() {
*
* @ticket 58517
*
- * @covers WP_HTML_Open_Elements::after_element_push
+ * [@]covers WP_HTML_Open_Elements::after_element_push
*/
public function test_after_element_push_must_maintain_p_in_button_scope_flag() {
// These elements impact all scopes.
@@ -234,7 +234,7 @@ public function test_after_element_push_must_maintain_p_in_button_scope_flag() {
*
* @ticket 58517
*
- * @covers WP_HTML_Open_Elements::has_element_in_table_scope
+ * [@]covers WP_HTML_Open_Elements::has_element_in_table_scope
*/
public function test_has_element_in_table_scope_needs_support() {
// These elements impact all scopes.
@@ -284,7 +284,7 @@ public function test_has_element_in_table_scope_needs_support() {
*
* @ticket 58517
*
- * @covers WP_HTML_Open_Elements::has_element_in_select_scope
+ * [@]covers WP_HTML_Open_Elements::has_element_in_select_scope
*/
public function test_has_element_in_select_scope_needs_support() {
// These elements impact all scopes.
diff --git a/tests/phpunit/tests/html-api/wpHtmlTagProcessor-bookmark.php b/tests/phpunit/tests/html-api/wpHtmlTagProcessor-bookmark.php
index a0a3b2aa44b4b..db333ca6f724d 100644
--- a/tests/phpunit/tests/html-api/wpHtmlTagProcessor-bookmark.php
+++ b/tests/phpunit/tests/html-api/wpHtmlTagProcessor-bookmark.php
@@ -16,7 +16,7 @@ class Tests_HtmlApi_WpHtmlTagProcessor_Bookmark extends WP_UnitTestCase {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::set_bookmark
+ * [@]covers WP_HTML_Tag_Processor::set_bookmark
*/
public function test_set_bookmark() {
$processor = new WP_HTML_Tag_Processor( '
' );
@@ -30,7 +30,7 @@ public function test_set_bookmark() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::release_bookmark
+ * [@]covers WP_HTML_Tag_Processor::release_bookmark
*/
public function test_release_bookmark() {
$processor = new WP_HTML_Tag_Processor( '
' );
@@ -43,7 +43,7 @@ public function test_release_bookmark() {
/**
* @ticket 57788
*
- * @covers WP_HTML_Tag_Processor::has_bookmark
+ * [@]covers WP_HTML_Tag_Processor::has_bookmark
*/
public function test_has_bookmark_returns_false_if_bookmark_does_not_exist() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -53,7 +53,7 @@ public function test_has_bookmark_returns_false_if_bookmark_does_not_exist() {
/**
* @ticket 57788
*
- * @covers WP_HTML_Tag_Processor::has_bookmark
+ * [@]covers WP_HTML_Tag_Processor::has_bookmark
*/
public function test_has_bookmark_returns_true_if_bookmark_exists() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -65,7 +65,7 @@ public function test_has_bookmark_returns_true_if_bookmark_exists() {
/**
* @ticket 57788
*
- * @covers WP_HTML_Tag_Processor::has_bookmark
+ * [@]covers WP_HTML_Tag_Processor::has_bookmark
*/
public function test_has_bookmark_returns_false_if_bookmark_has_been_released() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -78,7 +78,7 @@ public function test_has_bookmark_returns_false_if_bookmark_has_been_released()
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::seek
+ * [@]covers WP_HTML_Tag_Processor::seek
*/
public function test_seek() {
$processor = new WP_HTML_Tag_Processor( '
' );
@@ -101,7 +101,7 @@ public function test_seek() {
/**
* @ticket 57787
*
- * @covers WP_HTML_Tag_Processor::seek
+ * [@]covers WP_HTML_Tag_Processor::seek
*/
public function test_seeks_to_tag_closer_bookmark() {
$processor = new WP_HTML_Tag_Processor( '
First
Second ' );
@@ -155,8 +155,8 @@ public function test_seeks_to_tag_closer_bookmark() {
*
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::seek
- * @covers WP_HTML_Tag_Processor::set_bookmark
+ * [@]covers WP_HTML_Tag_Processor::seek
+ * [@]covers WP_HTML_Tag_Processor::set_bookmark
*/
public function test_removing_long_attributes_doesnt_break_seek() {
$input = <<First
Second
' );
@@ -316,7 +316,7 @@ public function test_updates_bookmark_for_additions_after_both_sides() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::seek
+ * [@]covers WP_HTML_Tag_Processor::seek
*/
public function test_updates_bookmark_for_additions_before_both_sides() {
$processor = new WP_HTML_Tag_Processor( '
First
Second
' );
@@ -341,7 +341,7 @@ public function test_updates_bookmark_for_additions_before_both_sides() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::seek
+ * [@]covers WP_HTML_Tag_Processor::seek
*/
public function test_updates_bookmark_for_deletions_after_both_sides() {
$processor = new WP_HTML_Tag_Processor( '
First
Second
' );
@@ -371,7 +371,7 @@ public function test_updates_bookmark_for_deletions_after_both_sides() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::seek
+ * [@]covers WP_HTML_Tag_Processor::seek
*/
public function test_updates_bookmark_for_deletions_before_both_sides() {
$processor = new WP_HTML_Tag_Processor( '
First
Second
' );
@@ -404,7 +404,7 @@ public function test_updates_bookmark_for_deletions_before_both_sides() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::set_bookmark
+ * [@]covers WP_HTML_Tag_Processor::set_bookmark
*/
public function test_limits_the_number_of_bookmarks() {
$processor = new WP_HTML_Tag_Processor( '
' );
@@ -421,7 +421,7 @@ public function test_limits_the_number_of_bookmarks() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::seek
+ * [@]covers WP_HTML_Tag_Processor::seek
*/
public function test_limits_the_number_of_seek_calls() {
$processor = new WP_HTML_Tag_Processor( '
' );
diff --git a/tests/phpunit/tests/html-api/wpHtmlTagProcessor-token-scanning.php b/tests/phpunit/tests/html-api/wpHtmlTagProcessor-token-scanning.php
index 4f1e1dab249d1..0095dc7d08404 100644
--- a/tests/phpunit/tests/html-api/wpHtmlTagProcessor-token-scanning.php
+++ b/tests/phpunit/tests/html-api/wpHtmlTagProcessor-token-scanning.php
@@ -19,7 +19,7 @@ class Tests_HtmlApi_WpHtmlProcessor_Token_Scanning extends WP_UnitTestCase {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*/
public function test_completes_empty_document() {
$processor = new WP_HTML_Tag_Processor( '' );
@@ -37,7 +37,7 @@ public function test_completes_empty_document() {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*/
public function test_basic_assertion_text_node() {
$processor = new WP_HTML_Tag_Processor( 'Hello, World!' );
@@ -63,7 +63,7 @@ public function test_basic_assertion_text_node() {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*/
public function test_basic_assertion_element() {
$processor = new WP_HTML_Tag_Processor( '
Hello, World!
' );
@@ -108,7 +108,7 @@ public function test_basic_assertion_element() {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*/
public function test_basic_assertion_script_element() {
$processor = new WP_HTML_Tag_Processor( '' );
@@ -148,7 +148,7 @@ public function test_basic_assertion_script_element() {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*/
public function test_basic_assertion_textarea_element() {
$processor = new WP_HTML_Tag_Processor(
@@ -201,7 +201,7 @@ public function test_basic_assertion_textarea_element() {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*/
public function test_basic_assertion_title_element() {
$processor = new WP_HTML_Tag_Processor(
@@ -247,7 +247,7 @@ public function test_basic_assertion_title_element() {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*
* @dataProvider data_rawtext_elements
*
@@ -312,7 +312,7 @@ public static function data_rawtext_elements() {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*/
public function test_basic_assertion_cdata_section() {
$processor = new WP_HTML_Tag_Processor( '' );
@@ -354,7 +354,7 @@ public function test_basic_assertion_cdata_section() {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*/
public function test_cdata_comment_with_incorrect_closer() {
$processor = new WP_HTML_Tag_Processor( '' );
@@ -386,7 +386,7 @@ public function test_cdata_comment_with_incorrect_closer() {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*/
public function test_basic_assertion_abruptly_closed_cdata_section() {
$processor = new WP_HTML_Tag_Processor( ' a comment]]>' );
@@ -442,7 +442,7 @@ public function test_basic_assertion_abruptly_closed_cdata_section() {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*/
public function test_basic_assertion_processing_instruction() {
$processor = new WP_HTML_Tag_Processor( '' );
@@ -485,7 +485,7 @@ public function test_basic_assertion_processing_instruction() {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*/
public function test_basic_assertion_abruptly_closed_processing_instruction() {
$processor = new WP_HTML_Tag_Processor( '=5.3.6"?>' );
@@ -537,7 +537,7 @@ public function test_basic_assertion_abruptly_closed_processing_instruction() {
*
* @dataProvider data_common_comments
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*
* @param string $html Contains the comment in full.
* @param string $text Contains the appropriate modifiable text.
@@ -599,7 +599,7 @@ public static function data_common_comments() {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*/
public function test_basic_assertion_html_comment() {
$processor = new WP_HTML_Tag_Processor( '' );
@@ -641,7 +641,7 @@ public function test_basic_assertion_html_comment() {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*/
public function test_basic_assertion_doctype() {
$processor = new WP_HTML_Tag_Processor( '' );
@@ -683,7 +683,7 @@ public function test_basic_assertion_doctype() {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*/
public function test_basic_assertion_presumptuous_tag() {
$processor = new WP_HTML_Tag_Processor( '>' );
@@ -725,7 +725,7 @@ public function test_basic_assertion_presumptuous_tag() {
*
* @since 6.5.0
*
- * @covers WP_HTML_Tag_Processor::next_token
+ * [@]covers WP_HTML_Tag_Processor::next_token
*/
public function test_basic_assertion_funky_comment() {
$processor = new WP_HTML_Tag_Processor( '%url>' );
diff --git a/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php b/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php
index 5375a2fca0ebf..bfeb55f1124d7 100644
--- a/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php
+++ b/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php
@@ -19,7 +19,7 @@ class Tests_HtmlApi_WpHtmlTagProcessor extends WP_UnitTestCase {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_tag
+ * [@]covers WP_HTML_Tag_Processor::get_tag
*/
public function test_get_tag_returns_null_before_finding_tags() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -30,7 +30,7 @@ public function test_get_tag_returns_null_before_finding_tags() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_tag
+ * [@]covers WP_HTML_Tag_Processor::get_tag
*/
public function test_get_tag_returns_null_when_not_in_open_tag() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -42,7 +42,7 @@ public function test_get_tag_returns_null_when_not_in_open_tag() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_tag
+ * [@]covers WP_HTML_Tag_Processor::get_tag
*/
public function test_get_tag_returns_open_tag_name() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -54,7 +54,7 @@ public function test_get_tag_returns_open_tag_name() {
/**
* @ticket 58009
*
- * @covers WP_HTML_Tag_Processor::has_self_closing_flag
+ * [@]covers WP_HTML_Tag_Processor::has_self_closing_flag
*
* @dataProvider data_has_self_closing_flag
*
@@ -104,7 +104,7 @@ public static function data_has_self_closing_flag() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_returns_null_before_finding_tags() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -115,7 +115,7 @@ public function test_get_attribute_returns_null_before_finding_tags() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_returns_null_when_not_in_open_tag() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -127,7 +127,7 @@ public function test_get_attribute_returns_null_when_not_in_open_tag() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_returns_null_when_in_closing_tag() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -140,7 +140,7 @@ public function test_get_attribute_returns_null_when_in_closing_tag() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_returns_null_when_attribute_missing() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -152,7 +152,7 @@ public function test_get_attribute_returns_null_when_attribute_missing() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_returns_attribute_value() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -164,7 +164,7 @@ public function test_get_attribute_returns_attribute_value() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_returns_true_for_boolean_attribute() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -176,7 +176,7 @@ public function test_get_attribute_returns_true_for_boolean_attribute() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_returns_string_for_truthy_attributes() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -190,7 +190,7 @@ public function test_get_attribute_returns_string_for_truthy_attributes() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_decodes_html_character_references() {
$processor = new WP_HTML_Tag_Processor( '
' );
@@ -202,7 +202,7 @@ public function test_get_attribute_decodes_html_character_references() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_attributes_parser_treats_slash_as_attribute_separator() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -218,7 +218,7 @@ public function test_attributes_parser_treats_slash_as_attribute_separator() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*
* @dataProvider data_attribute_name_case_variants
*
@@ -238,7 +238,7 @@ public function test_get_attribute_is_case_insensitive_for_attributes_with_value
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*
* @dataProvider data_attribute_name_case_variants
*
@@ -271,7 +271,7 @@ public static function data_attribute_name_case_variants() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::remove_attribute
+ * [@]covers WP_HTML_Tag_Processor::remove_attribute
*/
public function test_remove_attribute_is_case_insensitive() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -284,7 +284,7 @@ public function test_remove_attribute_is_case_insensitive() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::set_attribute
+ * [@]covers WP_HTML_Tag_Processor::set_attribute
*/
public function test_set_attribute_is_case_insensitive() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -297,7 +297,7 @@ public function test_set_attribute_is_case_insensitive() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute_names_with_prefix
+ * [@]covers WP_HTML_Tag_Processor::get_attribute_names_with_prefix
*/
public function test_get_attribute_names_with_prefix_returns_null_before_finding_tags() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -310,7 +310,7 @@ public function test_get_attribute_names_with_prefix_returns_null_before_finding
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute_names_with_prefix
+ * [@]covers WP_HTML_Tag_Processor::get_attribute_names_with_prefix
*/
public function test_get_attribute_names_with_prefix_returns_null_when_not_in_open_tag() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -321,7 +321,7 @@ public function test_get_attribute_names_with_prefix_returns_null_when_not_in_op
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute_names_with_prefix
+ * [@]covers WP_HTML_Tag_Processor::get_attribute_names_with_prefix
*/
public function test_get_attribute_names_with_prefix_returns_null_when_in_closing_tag() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -334,7 +334,7 @@ public function test_get_attribute_names_with_prefix_returns_null_when_in_closin
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute_names_with_prefix
+ * [@]covers WP_HTML_Tag_Processor::get_attribute_names_with_prefix
*/
public function test_get_attribute_names_with_prefix_returns_empty_array_when_no_attributes_present() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -346,7 +346,7 @@ public function test_get_attribute_names_with_prefix_returns_empty_array_when_no
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute_names_with_prefix
+ * [@]covers WP_HTML_Tag_Processor::get_attribute_names_with_prefix
*/
public function test_get_attribute_names_with_prefix_returns_matching_attribute_names_in_lowercase() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -362,7 +362,7 @@ public function test_get_attribute_names_with_prefix_returns_matching_attribute_
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute_names_with_prefix
+ * [@]covers WP_HTML_Tag_Processor::get_attribute_names_with_prefix
*/
public function test_get_attribute_names_with_prefix_returns_attribute_added_by_set_attribute() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -384,7 +384,7 @@ public function test_get_attribute_names_with_prefix_returns_attribute_added_by_
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::__toString
+ * [@]covers WP_HTML_Tag_Processor::__toString
*/
public function test_to_string_returns_updated_html() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -405,7 +405,7 @@ public function test_to_string_returns_updated_html() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_updated_html
+ * [@]covers WP_HTML_Tag_Processor::get_updated_html
*/
public function test_get_updated_html_applies_the_updates_so_far_and_keeps_the_processor_on_the_current_tag() {
$processor = new WP_HTML_Tag_Processor( '
Test
' );
@@ -444,7 +444,7 @@ public function test_get_updated_html_applies_the_updates_so_far_and_keeps_the_p
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_updated_html
+ * [@]covers WP_HTML_Tag_Processor::get_updated_html
*/
public function test_get_updated_html_without_updating_any_attributes_returns_the_original_html() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -479,7 +479,7 @@ public function test_get_updated_html_applies_updates_to_content_after_seeking_t
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::next_tag
+ * [@]covers WP_HTML_Tag_Processor::next_tag
*/
public function test_next_tag_with_no_arguments_should_find_the_next_existing_tag() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -490,7 +490,7 @@ public function test_next_tag_with_no_arguments_should_find_the_next_existing_ta
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::next_tag
+ * [@]covers WP_HTML_Tag_Processor::next_tag
*/
public function test_next_tag_should_return_false_for_a_non_existing_tag() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -501,7 +501,7 @@ public function test_next_tag_should_return_false_for_a_non_existing_tag() {
/**
* @ticket 59209
*
- * @covers WP_HTML_Tag_Processor::next_tag
+ * [@]covers WP_HTML_Tag_Processor::next_tag
*/
public function test_next_tag_matches_decoded_class_names() {
$processor = new WP_HTML_Tag_Processor( '
' );
@@ -513,8 +513,8 @@ public function test_next_tag_matches_decoded_class_names() {
* @ticket 56299
* @ticket 57852
*
- * @covers WP_HTML_Tag_Processor::next_tag
- * @covers WP_HTML_Tag_Processor::is_tag_closer
+ * [@]covers WP_HTML_Tag_Processor::next_tag
+ * [@]covers WP_HTML_Tag_Processor::is_tag_closer
*/
public function test_next_tag_should_stop_on_closers_only_when_requested() {
$processor = new WP_HTML_Tag_Processor( '
' );
@@ -550,8 +550,8 @@ public function test_next_tag_should_stop_on_closers_only_when_requested() {
/**
* @ticket 57852
*
- * @covers WP_HTML_Tag_Processor::next_tag
- * @covers WP_HTML_Tag_Processor::is_tag_closer
+ * [@]covers WP_HTML_Tag_Processor::next_tag
+ * [@]covers WP_HTML_Tag_Processor::is_tag_closer
*/
public function test_next_tag_should_stop_on_rcdata_and_script_tag_closers_when_requested() {
$processor = new WP_HTML_Tag_Processor( '' );
@@ -594,7 +594,7 @@ public function test_next_tag_should_stop_on_rcdata_and_script_tag_closers_when_
*
* @ticket 58179
*
- * @covers WP_HTML_Tag_Processor::get_updated_html
+ * [@]covers WP_HTML_Tag_Processor::get_updated_html
*/
public function test_internal_pointer_returns_to_original_spot_after_inserting_content_before_cursor() {
$tags = new WP_HTML_Tag_Processor( '
outside
inside
' );
@@ -617,7 +617,7 @@ public function test_internal_pointer_returns_to_original_spot_after_inserting_c
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::set_attribute
+ * [@]covers WP_HTML_Tag_Processor::set_attribute
*/
public function test_set_attribute_on_a_non_existing_tag_does_not_change_the_markup() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -637,10 +637,10 @@ public function test_set_attribute_on_a_non_existing_tag_does_not_change_the_mar
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::set_attribute
- * @covers WP_HTML_Tag_Processor::remove_attribute
- * @covers WP_HTML_Tag_Processor::add_class
- * @covers WP_HTML_Tag_Processor::remove_class
+ * [@]covers WP_HTML_Tag_Processor::set_attribute
+ * [@]covers WP_HTML_Tag_Processor::remove_attribute
+ * [@]covers WP_HTML_Tag_Processor::add_class
+ * [@]covers WP_HTML_Tag_Processor::remove_class
*/
public function test_attribute_ops_on_tag_closer_do_not_change_the_markup() {
$processor = new WP_HTML_Tag_Processor( '
' );
@@ -692,7 +692,7 @@ public function test_attribute_ops_on_tag_closer_do_not_change_the_markup() {
* @ticket 56299
*
* @dataProvider data_set_attribute_prevents_xss
- * @covers WP_HTML_Tag_Processor::set_attribute
+ * [@]covers WP_HTML_Tag_Processor::set_attribute
*
* @param string $attribute_value A value with potential XSS exploit.
*/
@@ -741,7 +741,7 @@ public static function data_set_attribute_prevents_xss() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::set_attribute
+ * [@]covers WP_HTML_Tag_Processor::set_attribute
*/
public function test_set_attribute_with_a_non_existing_attribute_adds_a_new_attribute_to_the_markup() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -763,7 +763,7 @@ public function test_set_attribute_with_a_non_existing_attribute_adds_a_new_attr
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_returns_updated_values_before_they_are_applied() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -785,7 +785,7 @@ public function test_get_attribute_returns_updated_values_before_they_are_applie
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_returns_updated_values_before_they_are_applied_with_different_name_casing() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -807,7 +807,7 @@ public function test_get_attribute_returns_updated_values_before_they_are_applie
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_reflects_added_class_names_before_they_are_applied() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -829,7 +829,7 @@ public function test_get_attribute_reflects_added_class_names_before_they_are_ap
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_reflects_added_class_names_before_they_are_applied_and_retains_classes_from_previous_add_class_calls() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -859,7 +859,7 @@ public function test_get_attribute_reflects_added_class_names_before_they_are_ap
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_reflects_removed_attribute_before_it_is_applied() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -880,7 +880,7 @@ public function test_get_attribute_reflects_removed_attribute_before_it_is_appli
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_reflects_adding_and_then_removing_an_attribute_before_those_updates_are_applied() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -902,7 +902,7 @@ public function test_get_attribute_reflects_adding_and_then_removing_an_attribut
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_reflects_setting_and_then_removing_an_existing_attribute_before_those_updates_are_applied() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -924,7 +924,7 @@ public function test_get_attribute_reflects_setting_and_then_removing_an_existin
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_reflects_removed_class_names_before_they_are_applied() {
$processor = new WP_HTML_Tag_Processor( self::HTML_WITH_CLASSES );
@@ -946,7 +946,7 @@ public function test_get_attribute_reflects_removed_class_names_before_they_are_
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_reflects_setting_and_then_removing_a_class_name_before_those_updates_are_applied() {
$processor = new WP_HTML_Tag_Processor( self::HTML_WITH_CLASSES );
@@ -969,7 +969,7 @@ public function test_get_attribute_reflects_setting_and_then_removing_a_class_na
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::get_attribute
+ * [@]covers WP_HTML_Tag_Processor::get_attribute
*/
public function test_get_attribute_reflects_duplicating_and_then_removing_an_existing_class_name_before_those_updates_are_applied() {
$processor = new WP_HTML_Tag_Processor( self::HTML_WITH_CLASSES );
@@ -995,7 +995,7 @@ public function test_get_attribute_reflects_duplicating_and_then_removing_an_exi
*
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::set_attribute
+ * [@]covers WP_HTML_Tag_Processor::set_attribute
*/
public function test_update_first_attribute_when_duplicated_attributes_exist() {
$processor = new WP_HTML_Tag_Processor( '
Text
' );
@@ -1012,7 +1012,7 @@ public function test_update_first_attribute_when_duplicated_attributes_exist() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::set_attribute
+ * [@]covers WP_HTML_Tag_Processor::set_attribute
*/
public function test_set_attribute_with_an_existing_attribute_name_updates_its_value_in_the_markup() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -1031,7 +1031,7 @@ public function test_set_attribute_with_an_existing_attribute_name_updates_its_v
*
* @ticket 58146
*
- * @covers WP_HTML_Tag_Processor::set_attribute
+ * [@]covers WP_HTML_Tag_Processor::set_attribute
*/
public function test_set_attribute_with_case_variants_updates_only_the_original_first_copy() {
$processor = new WP_HTML_Tag_Processor( '
' );
@@ -1046,8 +1046,8 @@ public function test_set_attribute_with_case_variants_updates_only_the_original_
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::next_tag
- * @covers WP_HTML_Tag_Processor::set_attribute
+ * [@]covers WP_HTML_Tag_Processor::next_tag
+ * [@]covers WP_HTML_Tag_Processor::set_attribute
*/
public function test_next_tag_and_set_attribute_in_a_loop_update_all_tags_in_the_markup() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -1070,7 +1070,7 @@ public function test_next_tag_and_set_attribute_in_a_loop_update_all_tags_in_the
*
* @ticket 58119
*
- * @covers WP_HTML_Tag_Processor::remove_attribute
+ * [@]covers WP_HTML_Tag_Processor::remove_attribute
*/
public function test_remove_first_when_duplicated_attribute() {
$processor = new WP_HTML_Tag_Processor( '
Text
' );
@@ -1087,7 +1087,7 @@ public function test_remove_first_when_duplicated_attribute() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::remove_attribute
+ * [@]covers WP_HTML_Tag_Processor::remove_attribute
*/
public function test_remove_attribute_with_an_existing_attribute_name_removes_it_from_the_markup() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -1106,7 +1106,7 @@ public function test_remove_attribute_with_an_existing_attribute_name_removes_it
*
* @since 6.3.2 Removes all duplicated attributes as expected.
*
- * @covers WP_HTML_Tag_Processor::remove_attribute
+ * [@]covers WP_HTML_Tag_Processor::remove_attribute
*
* @dataProvider data_html_with_duplicated_attributes
*/
@@ -1128,7 +1128,7 @@ public function test_remove_attribute_with_duplicated_attributes_removes_all_of_
*
* @since 6.3.2 Removes all duplicated attributes as expected.
*
- * @covers WP_HTML_Tag_Processor::remove_attribute
+ * [@]covers WP_HTML_Tag_Processor::remove_attribute
*/
public function test_previous_duplicated_attributes_are_not_removed_on_successive_tag_removal() {
$processor = new WP_HTML_Tag_Processor( '
' );
@@ -1159,7 +1159,7 @@ public static function data_html_with_duplicated_attributes() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::remove_attribute
+ * [@]covers WP_HTML_Tag_Processor::remove_attribute
*/
public function test_remove_attribute_with_a_non_existing_attribute_name_does_not_change_the_markup() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -1176,7 +1176,7 @@ public function test_remove_attribute_with_a_non_existing_attribute_name_does_no
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::add_class
+ * [@]covers WP_HTML_Tag_Processor::add_class
*/
public function test_add_class_creates_a_class_attribute_when_there_is_none() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -1198,7 +1198,7 @@ public function test_add_class_creates_a_class_attribute_when_there_is_none() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::add_class
+ * [@]covers WP_HTML_Tag_Processor::add_class
*/
public function test_calling_add_class_twice_creates_a_class_attribute_with_both_class_names_when_there_is_no_class_attribute() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -1221,7 +1221,7 @@ public function test_calling_add_class_twice_creates_a_class_attribute_with_both
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::remove_class
+ * [@]covers WP_HTML_Tag_Processor::remove_class
*/
public function test_remove_class_does_not_change_the_markup_when_there_is_no_class_attribute() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -1242,7 +1242,7 @@ public function test_remove_class_does_not_change_the_markup_when_there_is_no_cl
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::add_class
+ * [@]covers WP_HTML_Tag_Processor::add_class
*/
public function test_add_class_appends_class_names_to_the_existing_class_attribute_when_one_already_exists() {
$processor = new WP_HTML_Tag_Processor( self::HTML_WITH_CLASSES );
@@ -1265,7 +1265,7 @@ public function test_add_class_appends_class_names_to_the_existing_class_attribu
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::remove_class
+ * [@]covers WP_HTML_Tag_Processor::remove_class
*/
public function test_remove_class_removes_a_single_class_from_the_class_attribute_when_one_exists() {
$processor = new WP_HTML_Tag_Processor( self::HTML_WITH_CLASSES );
@@ -1287,7 +1287,7 @@ public function test_remove_class_removes_a_single_class_from_the_class_attribut
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::remove_class
+ * [@]covers WP_HTML_Tag_Processor::remove_class
*/
public function test_calling_remove_class_with_all_listed_class_names_removes_the_existing_class_attribute_from_the_markup() {
$processor = new WP_HTML_Tag_Processor( self::HTML_WITH_CLASSES );
@@ -1309,7 +1309,7 @@ public function test_calling_remove_class_with_all_listed_class_names_removes_th
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::add_class
+ * [@]covers WP_HTML_Tag_Processor::add_class
*/
public function test_add_class_does_not_add_duplicate_class_names() {
$processor = new WP_HTML_Tag_Processor( self::HTML_WITH_CLASSES );
@@ -1331,7 +1331,7 @@ public function test_add_class_does_not_add_duplicate_class_names() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::add_class
+ * [@]covers WP_HTML_Tag_Processor::add_class
*/
public function test_add_class_preserves_class_name_order_when_a_duplicate_class_name_is_added() {
$processor = new WP_HTML_Tag_Processor( self::HTML_WITH_CLASSES );
@@ -1353,7 +1353,7 @@ public function test_add_class_preserves_class_name_order_when_a_duplicate_class
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::add_class
+ * [@]covers WP_HTML_Tag_Processor::add_class
*/
public function test_add_class_when_there_is_a_class_attribute_with_excessive_whitespaces() {
$processor = new WP_HTML_Tag_Processor(
@@ -1377,7 +1377,7 @@ public function test_add_class_when_there_is_a_class_attribute_with_excessive_wh
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::remove_class
+ * [@]covers WP_HTML_Tag_Processor::remove_class
*/
public function test_remove_class_preserves_whitespaces_when_there_is_a_class_attribute_with_excessive_whitespaces() {
$processor = new WP_HTML_Tag_Processor(
@@ -1401,7 +1401,7 @@ public function test_remove_class_preserves_whitespaces_when_there_is_a_class_at
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::remove_class
+ * [@]covers WP_HTML_Tag_Processor::remove_class
*/
public function test_removing_all_classes_removes_the_existing_class_attribute_from_the_markup_even_when_excessive_whitespaces_are_present() {
$processor = new WP_HTML_Tag_Processor(
@@ -1431,8 +1431,8 @@ public function test_removing_all_classes_removes_the_existing_class_attribute_f
*
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::add_class
- * @covers WP_HTML_Tag_Processor::set_attribute
+ * [@]covers WP_HTML_Tag_Processor::add_class
+ * [@]covers WP_HTML_Tag_Processor::set_attribute
*/
public function test_set_attribute_takes_priority_over_add_class() {
$processor = new WP_HTML_Tag_Processor( self::HTML_WITH_CLASSES );
@@ -1478,8 +1478,8 @@ public function test_set_attribute_takes_priority_over_add_class() {
*
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::add_class
- * @covers WP_HTML_Tag_Processor::set_attribute
+ * [@]covers WP_HTML_Tag_Processor::add_class
+ * [@]covers WP_HTML_Tag_Processor::set_attribute
*/
public function test_set_attribute_takes_priority_over_add_class_even_before_updating() {
$processor = new WP_HTML_Tag_Processor( self::HTML_WITH_CLASSES );
@@ -1516,7 +1516,7 @@ public function test_set_attribute_takes_priority_over_add_class_even_before_upd
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::add_class
+ * [@]covers WP_HTML_Tag_Processor::add_class
*/
public function test_add_class_overrides_boolean_class_attribute() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -1538,7 +1538,7 @@ public function test_add_class_overrides_boolean_class_attribute() {
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::add_class
+ * [@]covers WP_HTML_Tag_Processor::add_class
*/
public function test_add_class_overrides_boolean_class_attribute_even_before_updating() {
$processor = new WP_HTML_Tag_Processor( self::HTML_SIMPLE );
@@ -1560,11 +1560,11 @@ public function test_add_class_overrides_boolean_class_attribute_even_before_upd
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::set_attribute
- * @covers WP_HTML_Tag_Processor::remove_attribute
- * @covers WP_HTML_Tag_Processor::add_class
- * @covers WP_HTML_Tag_Processor::remove_class
- * @covers WP_HTML_Tag_Processor::get_updated_html
+ * [@]covers WP_HTML_Tag_Processor::set_attribute
+ * [@]covers WP_HTML_Tag_Processor::remove_attribute
+ * [@]covers WP_HTML_Tag_Processor::add_class
+ * [@]covers WP_HTML_Tag_Processor::remove_class
+ * [@]covers WP_HTML_Tag_Processor::get_updated_html
*/
public function test_advanced_use_case() {
$input = <<I have a bike ';
@@ -1743,7 +1743,7 @@ public function test_setting_a_missing_attribute_to_false_does_not_change_the_ma
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::set_attribute
+ * [@]covers WP_HTML_Tag_Processor::set_attribute
*/
public function test_setting_a_boolean_attribute_to_a_string_value_adds_explicit_value_to_the_markup() {
$processor = new WP_HTML_Tag_Processor(
@@ -1761,8 +1761,8 @@ public function test_setting_a_boolean_attribute_to_a_string_value_adds_explicit
/**
* @ticket 56299
*
- * @covers WP_HTML_Tag_Processor::next_tag
- * @covers WP_HTML_Tag_Processor::paused_at_incomplete_token
+ * [@]covers WP_HTML_Tag_Processor::next_tag
+ * [@]covers WP_HTML_Tag_Processor::paused_at_incomplete_token
*/
public function test_unclosed_script_tag_should_not_cause_an_infinite_loop() {
$processor = new WP_HTML_Tag_Processor( '