Changeset 56790 for trunk/tests/phpunit/tests/html-api/wpHtmlProcessor.php
- Timestamp:
- 10/05/2023 10:40:48 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/html-api/wpHtmlProcessor.php
r56493 r56790 53 53 */ 54 54 public function test_get_tag_is_null_once_document_is_finished() { 55 $p = WP_HTML_Processor::create Fragment( '<div class="test">Test</div>' );55 $p = WP_HTML_Processor::create_fragment( '<div class="test">Test</div>' ); 56 56 $p->next_tag(); 57 57 $this->assertSame( 'DIV', $p->get_tag() ); … … 70 70 */ 71 71 public function test_stops_processing_after_unsupported_elements() { 72 $p = WP_HTML_Processor::create Fragment( '<p><x-not-supported></p><p></p>' );72 $p = WP_HTML_Processor::create_fragment( '<p><x-not-supported></p><p></p>' ); 73 73 $p->next_tag( 'P' ); 74 74 $this->assertFalse( $p->next_tag(), 'Stepped into a tag after encountering X-NOT-SUPPORTED element when it should have aborted.' ); … … 96 96 */ 97 97 public function test_clear_to_navigate_after_seeking() { 98 $p = WP_HTML_Processor::create Fragment( '<div one><strong></strong></div><p><strong two></strong></p>' );98 $p = WP_HTML_Processor::create_fragment( '<div one><strong></strong></div><p><strong two></strong></p>' ); 99 99 100 100 while ( $p->next_tag() ) { … … 145 145 */ 146 146 public function test_fails_to_reconstruct_formatting_elements() { 147 $p = WP_HTML_Processor::create Fragment( '<p><em>One<p><em>Two<p><em>Three<p><em>Four' );147 $p = WP_HTML_Processor::create_fragment( '<p><em>One<p><em>Two<p><em>Three<p><em>Four' ); 148 148 149 149 $this->assertTrue( $p->next_tag( 'EM' ), 'Could not find first EM.' );
Note: See TracChangeset
for help on using the changeset viewer.