Skip to content

Commit ccc9e3b

Browse files
committed
WIP
1 parent 1c7ee80 commit ccc9e3b

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@
66
* @subpackage HTML-API
77
*/
88

9+
if ( ! class_exists( 'WP_UnitTestCase' ) ) {
10+
class WP_UnitTestCase extends PHPUnit\Framework\TestCase {}
11+
12+
require_once '/Users/dmsnell/code/WordPress-develop/src/wp-includes/html-api/class-wp-html-attribute-token.php';
13+
require_once '/Users/dmsnell/code/WordPress-develop/src/wp-includes/html-api/class-wp-html-span.php';
14+
// require_once '/Users/dmsnell/code/WordPress-develop/src/wp-includes/html-api/class-wp-html-spec.php';
15+
require_once '/Users/dmsnell/code/WordPress-develop/src/wp-includes/html-api/class-wp-html-text-replacement.php';
16+
require_once '/Users/dmsnell/code/WordPress-develop/src/wp-includes/html-api/class-wp-html-tag-processor.php';
17+
// require_once '/Users/dmsnell/code/WordPress-develop/src/wp-includes/html-api/class-wp-html-processor.php';
18+
19+
function esc_attr( $s ) { return str_replace( [ '<', '>', '"' ], [ '&lt;', '&gt;', '&quot;' ], $s ); }
20+
}
21+
922
/**
1023
* @group html-api
1124
*

0 commit comments

Comments
 (0)