diff --git a/tests/phpunit/tests/html-api/wpHtmlProcessor.php b/tests/phpunit/tests/html-api/wpHtmlProcessor.php index 26dc7b0bdb826..76022a9ce60d3 100644 --- a/tests/phpunit/tests/html-api/wpHtmlProcessor.php +++ b/tests/phpunit/tests/html-api/wpHtmlProcessor.php @@ -30,16 +30,10 @@ class Tests_HtmlApi_WpHtmlProcessor extends WP_UnitTestCase { * @ticket 58517 * * @covers WP_HTML_Processor::__construct + * @expectedIncorrectUsage WP_HTML_Processor::__construct */ public function test_warns_that_the_static_creator_methods_should_be_called_instead_of_the_public_constructor() { - $this->setExpectedIncorrectUsage( 'WP_HTML_Processor::__construct' ); - new WP_HTML_Processor( '
Light roast.
' ); - - $this->assertNotNull( - $this->caught_doing_it_wrong['WP_HTML_Processor::__construct'], - "Calling the public constructor should warn to call the static creator methods instead, but didn't." - ); } /** diff --git a/tests/phpunit/tests/html-api/wpHtmlTagProcessor-bookmark.php b/tests/phpunit/tests/html-api/wpHtmlTagProcessor-bookmark.php index 0c5093d03cc40..ad0cf68906245 100644 --- a/tests/phpunit/tests/html-api/wpHtmlTagProcessor-bookmark.php +++ b/tests/phpunit/tests/html-api/wpHtmlTagProcessor-bookmark.php @@ -414,6 +414,7 @@ public function test_updates_bookmark_for_deletions_before_both_sides() { * @ticket 56299 * * @covers WP_HTML_Tag_Processor::set_bookmark + * @expectedIncorrectUsage WP_HTML_Tag_Processor::set_bookmark */ public function test_limits_the_number_of_bookmarks() { $processor = new WP_HTML_Tag_Processor( '