Changeset 60707 for trunk/tests/phpunit/includes/build-visual-html-tree.php
- Timestamp:
- 09/04/2025 02:48:51 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/build-visual-html-tree.php
r60295 r60707 41 41 * @since 6.9.0 42 42 * 43 * @throws WP_HTML_Unsupported_Exception|E rrorIf the markup could not be parsed.43 * @throws WP_HTML_Unsupported_Exception|Exception If the markup could not be parsed. 44 44 * 45 45 * @param string $html Given test HTML. … … 52 52 : WP_HTML_Processor::create_full_parser( $html ); 53 53 if ( null === $processor ) { 54 throw new E rror( 'Could not create a parser.' );54 throw new Exception( 'Could not create a parser.' ); 55 55 } 56 56 $tree_indent = ' '; … … 281 281 // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export 282 282 $serialized_token_type = var_export( $processor->get_token_type(), true ); 283 throw new E rror( "Unhandled token type for tree construction: {$serialized_token_type}" );283 throw new Exception( "Unhandled token type for tree construction: {$serialized_token_type}" ); 284 284 } 285 285 } … … 290 290 291 291 if ( null !== $processor->get_last_error() ) { 292 throw new E rror( "Parser error: {$processor->get_last_error()}" );292 throw new Exception( "Parser error: {$processor->get_last_error()}" ); 293 293 } 294 294 295 295 if ( $processor->paused_at_incomplete_token() ) { 296 throw new E rror( 'Paused at incomplete token.' );296 throw new Exception( 'Paused at incomplete token.' ); 297 297 } 298 298
Note: See TracChangeset
for help on using the changeset viewer.