Tests: Improve PHPUnit version retrieval.

Always test for newer class names first and fall back to the older.

This improves compatibility when running PHPUnit via a phar while there is also a Composer-installed version of PHPUnit on the system.

Props jrf.
See #52625.
Built from https://develop.svn.wordpress.org/trunk@50982


git-svn-id: http://core.svn.wordpress.org/trunk@50591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-05-24 21:04:56 +00:00
parent 0d1e4e553c
commit 492bfa670e
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.8-alpha-50981';
$wp_version = '5.8-alpha-50982';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.