diff --git a/tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php b/tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php
index eca3781a13da3..7f0624a4aa153 100644
--- a/tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php
+++ b/tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php
@@ -51,10 +51,10 @@ public function test_external_html5lib( $fragment_context, $html, $result ) {
}
if ( null === $processed_tree ) {
- $this->markTestSkipped( 'Skipped test because it contains unsupported markup.' );
- } else {
- $this->assertEquals( $result, $processed_tree, "HTML {$html} was not processed correctly." );
+ $this->markTestIncomplete( 'Test includes unsupported markup.' );
}
+
+ $this->assertEquals( $result, $processed_tree, "HTML was not processed correctly:\n{$html}" );
}
/**