mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Build/Test Tools: Display a message about currently supported PHPUnit branch to avoid fatal errors on later versions.
See #46149. git-svn-id: https://develop.svn.wordpress.org/trunk@44723 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
56f305790a
commit
3e19129dc9
@ -36,6 +36,15 @@ if ( ! is_readable( $config_file_path ) ) {
|
||||
require_once $config_file_path;
|
||||
require_once dirname( __FILE__ ) . '/functions.php';
|
||||
|
||||
if ( version_compare( tests_get_phpunit_version(), '8.0', '>=' ) ) {
|
||||
printf(
|
||||
"ERROR: Looks like you're using PHPUnit %s. WordPress is currently only compatible with PHPUnit up to 7.x.\n",
|
||||
tests_get_phpunit_version()
|
||||
);
|
||||
echo "Please use the latest PHPUnit version from the 7.x branch.\n";
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
tests_reset__SERVER();
|
||||
|
||||
define( 'WP_TESTS_TABLE_PREFIX', $table_prefix );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user