diff --git a/tests/phpunit/includes/abstract-testcase.php b/tests/phpunit/includes/abstract-testcase.php index c70b6d6aad..933859571b 100644 --- a/tests/phpunit/includes/abstract-testcase.php +++ b/tests/phpunit/includes/abstract-testcase.php @@ -12,7 +12,7 @@ require_once __DIR__ . '/trac.php'; * * All WordPress unit tests should inherit from this class. */ -abstract class WP_UnitTestCase_Base extends PHPUnit\Framework\TestCase { +abstract class WP_UnitTestCase_Base extends PHPUnit_Adapter_TestCase { protected static $forced_tickets = array(); protected $expected_deprecated = array(); diff --git a/tests/phpunit/includes/bootstrap.php b/tests/phpunit/includes/bootstrap.php index b96ed477e7..b557efd3d9 100644 --- a/tests/phpunit/includes/bootstrap.php +++ b/tests/phpunit/includes/bootstrap.php @@ -207,6 +207,7 @@ if ( version_compare( tests_get_phpunit_version(), '6.0', '>=' ) ) { require_once $phpunit_polyfills_autoloader; unset( $phpunit_polyfills_autoloader ); +require __DIR__ . '/phpunit-adapter-testcase.php'; require __DIR__ . '/abstract-testcase.php'; require __DIR__ . '/testcase.php'; require __DIR__ . '/testcase-rest-api.php'; diff --git a/tests/phpunit/includes/phpunit-adapter-testcase.php b/tests/phpunit/includes/phpunit-adapter-testcase.php new file mode 100644 index 0000000000..5c1640817f --- /dev/null +++ b/tests/phpunit/includes/phpunit-adapter-testcase.php @@ -0,0 +1,45 @@ +