Changeset 51333
- Timestamp:
- 07/06/2021 11:33:27 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/bootstrap.php
r50986 r51333 3 3 * Installs WordPress for running the tests and loads WordPress and the test libraries 4 4 */ 5 6 /**7 * Compatibility with PHPUnit 6+8 */9 if ( class_exists( 'PHPUnit\Runner\Version' ) ) {10 require_once __DIR__ . '/phpunit6/compat.php';11 }12 5 13 6 if ( defined( 'WP_TESTS_CONFIG_FILE_PATH' ) ) { … … 194 187 _delete_all_posts(); 195 188 189 // Load class aliases for compatibility with PHPUnit 6+. 190 if ( version_compare( tests_get_phpunit_version(), '6.0', '>=' ) ) { 191 require __DIR__ . '/phpunit6/compat.php'; 192 } 193 194 // Load separate WP_UnitTestCase classes for PHPUnit 7.5+ and older versions. 196 195 if ( version_compare( tests_get_phpunit_version(), '7.5', '>=' ) ) { 197 196 require __DIR__ . '/phpunit7/testcase.php';
Note: See TracChangeset
for help on using the changeset viewer.