Changeset 51810
- Timestamp:
- 09/14/2021 06:32:39 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/bootstrap.php
r51669 r51810 87 87 && '' !== WP_TESTS_PHPUNIT_POLYFILLS_PATH 88 88 ) { 89 $phpunit_polyfills_path = rtrim( $phpunit_polyfills_path, '/\\' ); 90 $phpunit_polyfills_path = realpath( $phpunit_polyfills_path . '/phpunitpolyfills-autoload.php' ); 89 // Be tolerant to the path being provided including the filename. 90 if ( substr( $phpunit_polyfills_path, -29 ) !== 'phpunitpolyfills-autoload.php' ) { 91 $phpunit_polyfills_path = rtrim( $phpunit_polyfills_path, '/\\' ); 92 $phpunit_polyfills_path = $phpunit_polyfills_path . '/phpunitpolyfills-autoload.php'; 93 } 94 95 $phpunit_polyfills_path = realpath( $phpunit_polyfills_path ); 91 96 if ( false !== $phpunit_polyfills_path ) { 92 97 $phpunit_polyfills_autoloader = $phpunit_polyfills_path;
Note: See TracChangeset
for help on using the changeset viewer.