Skip to content

Commit

Permalink
Mark unsupported markup tests as incomplete, not skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Jan 16, 2024
1 parent 6035fd7 commit 315d5cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}" );
}

/**
Expand Down

0 comments on commit 315d5cd

Please sign in to comment.