Skip to content

Commit 823659c

Browse files
committed
Improve failed test message
1 parent 854f5e0 commit 823659c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpunit/tests/html-api/wpHtmlProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ public function test_set_inner_html_not_allowed( string $html, string $replaceme
913913
break;
914914
}
915915
}
916-
$this->assertFalse( $processor->set_inner_html( $replacement ) );
916+
$this->assertFalse( $processor->set_inner_html( $replacement ), "Should have failed but produced: {$processor->get_updated_html()}" );
917917
$this->assertSame( $html, $processor->get_updated_html() );
918918
}
919919

0 commit comments

Comments
 (0)