File tree Expand file tree Collapse file tree
tests/phpunit/tests/html-api Expand file tree Collapse file tree Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments