Changeset 51812
- Timestamp:
- 09/14/2021 06:47:46 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/bootstrap.php
r51811 r51812 134 134 if ( class_exists( '\Yoast\PHPUnitPolyfills\Autoload' ) 135 135 && ( defined( '\Yoast\PHPUnitPolyfills\Autoload::VERSION' ) === false 136 || version_compare( \Yoast\PHPUnitPolyfills\Autoload::VERSION, $phpunit_polyfills_minimum_version, '<' ) )136 || version_compare( Yoast\PHPUnitPolyfills\Autoload::VERSION, $phpunit_polyfills_minimum_version, '<' ) ) 137 137 ) { 138 138 printf( 139 'Error: Version mismatch detected for the PHPUnit Polyfills. Please ensure that PHPUnit Polyfills %s or higher is loaded.' . PHP_EOL, 140 $phpunit_polyfills_minimum_version 139 'Error: Version mismatch detected for the PHPUnit Polyfills. Please ensure that PHPUnit Polyfills %s or higher is loaded. Found version: %s' . PHP_EOL, 140 $phpunit_polyfills_minimum_version, 141 defined( '\Yoast\PHPUnitPolyfills\Autoload::VERSION' ) ? Yoast\PHPUnitPolyfills\Autoload::VERSION : '1.0.0 or lower' 141 142 ); 142 if ( ! defined( 'WP_TESTS_PHPUNIT_POLYFILLS_PATH' ) ) { 143 if ( defined( 'WP_TESTS_PHPUNIT_POLYFILLS_PATH' ) ) { 144 printf( 145 'Please ensure that the PHPUnit Polyfill install in "%s" is updated to version %s or higher.' . PHP_EOL, 146 WP_TESTS_PHPUNIT_POLYFILLS_PATH, 147 $phpunit_polyfills_minimum_version 148 ); 149 } elseif ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) { 143 150 echo 'Please run `composer update` to install the latest version.' . PHP_EOL; 144 151 }
Note: See TracChangeset
for help on using the changeset viewer.