Skip to content

Commit f05d98b

Browse files
committed
Rename result variable to expected_tree
1 parent 710f580 commit f05d98b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ class Tests_HtmlApi_Html5lib extends WP_UnitTestCase {
7777
*
7878
* @param string $fragment_context Context element in which to parse HTML, such as BODY or SVG.
7979
* @param string $html Given test HTML.
80-
* @param string $result Tree structure of parsed HTML.
80+
* @param string $expected_tree Tree structure of parsed HTML.
8181
*/
82-
public function test_parse( $fragment_context, $html, $result ) {
82+
public function test_parse( $fragment_context, $html, $expected_tree ) {
8383
$processed_tree = self::build_tree_representation( $fragment_context, $html );
8484

8585
if ( null === $processed_tree ) {
8686
$this->markTestIncomplete( 'Test includes unsupported markup.' );
8787
}
8888

89-
$this->assertSame( $result, $processed_tree, "HTML was not processed correctly:\n{$html}" );
89+
$this->assertSame( $expected_tree, $processed_tree, "HTML was not processed correctly:\n{$html}" );
9090
}
9191

9292
/**

0 commit comments

Comments
 (0)