From 3db37d3459162357b35db8267bc5734ce5c04568 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 4 Aug 2021 19:26:00 +0000 Subject: [PATCH] Build/Test Tools: Use a custom autoloader for the PHPUnit 9.x mock object classes. This prevents the classes from being loaded automatically via the `autoload-dev` directives when a Composer-installed PHPUnit 5.x or 6.x version is used, as that would break the test run. It is expected that this autoloader will be removed soon, as it should no longer be needed when the PHPUnit version constraints are widened. Notes: * The autoloader file will be loaded from the Test bootstrap. * The autoloader will always be registered and directed to queue itself _before_ the Composer autoload file (which will already have been registered). * The autoloader will only actually load the WP copies of the files/classes when PHP 8.0 in combination with PHPUnit 7.x is detected. In all other cases, the autoloader will bow out, which effectively then defers to the Composer autoload file to load the files as shipped with the installed PHPUnit version. Follow-up to [48957], [49037], [51543]. Props jrf. See #47381. Built from https://develop.svn.wordpress.org/trunk@51544 git-svn-id: http://core.svn.wordpress.org/trunk@51155 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 4f534ccf28..9290e8c5f0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51543'; +$wp_version = '5.9-alpha-51544'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.