Make WordPress Core


Ignore:
Timestamp:
09/22/2021 12:09:05 AM (3 years ago)
Author:
hellofromTonya
Message:

Build/Test Tools: Introduce the PHPUnit Polyfills package for easier cross branch testing.

This backports the PHPUnit Polyfills package and related test infrastructure changes to make it easier for developers to continue testing on multiple versions WordPress while adding tests for newer versions of PHP, which require more modern PHPUnit practices.

One of the changes included is the addition of wrappers for the new snake_case fixture methods in PHPUnit. This allows the native camelCase standard in PHPUnit to be used, but allows for developers to transition to the new naming conventions.

Props hellofromTonya, jrf, SergeyBiryukov, johnbillion, netweb, schlessera, jeherve, lucatume, desrosj.
Merges [51559,51560,51810-51813,51828] to the 5.2 branch.
See #53911.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2/composer.json

    r49514 r51846  
    1212    "require-dev": {
    1313        "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7.0",
    14         "wp-coding-standards/wpcs": "~2.0.0"
     14        "wp-coding-standards/wpcs": "~2.0.0",
     15        "phpunit/phpunit": "^5.7.21 || ^6.5 || ^7.5",
     16        "yoast/phpunit-polyfills": "^1.0.1"
    1517    },
    1618    "scripts": {
Note: See TracChangeset for help on using the changeset viewer.