File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php
2+
3+ // Core stuff.
4+ require_once __DIR__ . '/wp-test-config.php ' ;
5+ wp_cache_init ();
6+ require_wp_db ();
7+
8+ require_once __DIR__ . '/tests/phpunit/includes/phpunit-adapter-testcase.php ' ;
9+ require_once __DIR__ . '/tests/phpunit/includes/abstract-testcase.php ' ;
10+ require_once __DIR__ . '/tests/phpunit/includes/testcase.php ' ;
11+ require_once __DIR__ . '/tests/phpunit/includes/functions.php ' ;
12+
13+ if ( ! defined ( 'DIR_TESTDATA ' ) ) {
14+ define ( 'DIR_TESTDATA ' , __DIR__ . '/tests/phpunit/data ' );
15+ }
16+
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <phpunit
3+ xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi:noNamespaceSchemaLocation=" http://schema.phpunit.de/9.2/phpunit.xsd"
5+ bootstrap=" my.bootstrap.php"
6+ testdox=" true"
7+ colors=" true"
8+ >
9+ <php >
10+ <const name =" WP_TESTS_DOMAIN" value =" example.org" />
11+ </php >
12+ <testsuites >
13+ <testsuite name =" formatting" >
14+ <directory suffix =" .php" >tests/phpunit/tests/formatting</directory >
15+ </testsuite >
16+ <testsuite name =" kses" >
17+ <file >tests/phpunit/tests/kses.php</file >
18+ </testsuite >
19+ <testsuite name =" html-api" >
20+ <directory suffix =" .php" >tests/phpunit/tests/html-api</directory >
21+ </testsuite >
22+ </testsuites >
23+ </phpunit >
You can’t perform that action at this time.
0 commit comments