Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Apr 17, 2023
1 parent 9df697a commit 1fd85c1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/phpunit/tests/html-api/wpHtmlTagProcessor.php
Expand Up @@ -6,6 +6,21 @@
* @subpackage HTML-API
*/

if ( ! class_exists( 'WP_HTML_Tag_Processor' ) ) {
require_once '/Users/dmsnell/code/WordPress-develop/src/wp-includes/html-api/class-wp-html-attribute-token.php';
require_once '/Users/dmsnell/code/WordPress-develop/src/wp-includes/html-api/class-wp-html-span.php';
require_once '/Users/dmsnell/code/WordPress-develop/src/wp-includes/html-api/class-wp-html-text-replacement.php';
require_once '/Users/dmsnell/code/WordPress-develop/src/wp-includes/html-api/class-wp-html-tag-processor.php';
}

if ( ! class_exists( 'WP_UnitTestCase' ) ) {
class WP_UnitTestCase extends PHPUnit\Framework\TestCase {}
}

if ( ! function_exists( 'esc_attr' ) ) {
function esc_attr( $s ) { return str_replace( [ '<', '>', '"' ], [ '&lt;', '&gt;', '&quot;' ], $s ); }
}

/**
* @group html-api
*
Expand Down

0 comments on commit 1fd85c1

Please sign in to comment.