Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/phpunit/includes/abstract-testcase.php
Original file line number Diff line number Diff line change
Expand Up @@ -1195,11 +1195,11 @@ public function assertQueryTrue( ...$prop ) {
* @param string $actual The actual HTML.
* @param string|null $fragment_context Optional. The fragment context, for example "<td>" expected HTML
* must occur within "<table><tr>" fragment context. Default "<body>".
* Only `<body>` or `null` are supported at this time.
* Set to null to parse a full HTML document.
* Only "<body>" or `null` are supported at this time.
* Set to `null` to parse a full HTML document.
* @param string|null $message Optional. The assertion error message.
*/
public function assertEqualBlockMarkup( string $expected, string $actual, ?string $fragment_context = '<body>', $message = 'HTML markup was not equivalent.' ): void {
public function assertEqualMarkup( string $expected, string $actual, ?string $fragment_context = '<body>', $message = 'HTML markup was not equivalent.' ): void {
try {
$tree_expected = build_equivalent_html_semantic_tree( $expected, $fragment_context );
$tree_actual = build_equivalent_html_semantic_tree( $actual, $fragment_context );
Expand Down
Loading